Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cajoled DataTable yuitest and one example. Removed the languishing te…

…st_results.txt file.
  • Loading branch information...
commit ecd47b85c342171cd9f082b8b7297550df2150ee 1 parent 2dfcd8c
@lsmith lsmith authored
View
22 build.felix.xml
@@ -550,12 +550,12 @@
<arg value="${build}/json_test.vo.js" />
</exec>
</target>
- <target name="sample_tabview_test" depends="init">
+ <target name="datatable_test" depends="init">
<exec dir="." executable="${caja.cajoler}" >
<arg value="-i" />
- <arg value="${test}/sample_tabview_gadget.html" />
+ <arg value="${yuitest}/datatable.html" />
<arg value="-o" />
- <arg value="${build}/sample_tabview_test.vo.js" />
+ <arg value="${build}/datatable_test.vo.js" />
</exec>
</target>
@@ -868,6 +868,15 @@
</exec>
</target>
+ <target name="datatable1_ex" depends="init">
+ <exec dir="." executable="${caja.cajoler}" >
+ <arg value="-i" />
+ <arg value="${example}/dt_basic_clean.html" />
+ <arg value="-o" />
+ <arg value="${build}/datatable1_example.vo.js" />
+ </exec>
+ </target>
+
<target name="all"
depends="init, yui, yui_css, gadgets, yuitests, examples" />
@@ -881,10 +890,10 @@
depends="init, core, dd, resize_gadget, connection_gadget, json_gadget, treeview_gadget, yuitest_gadget, error_gadget" />
<target name="yuitests"
- depends="init, yahoo_test, animation_test, dd_test, dom_test, selector_test, yuitest_test, connection_test, cookie_test, profiler_test, datasource_test, tabview_test, autocomplete_test, menu_test, slider_test, module_test, config_test, calendar_test, datemath_test, colorpicker_test, paginator_test, json_test" />
+ depends="init, yahoo_test, animation_test, dd_test, dom_test, selector_test, yuitest_test, connection_test, cookie_test, profiler_test, datasource_test, tabview_test, autocomplete_test, menu_test, slider_test, module_test, config_test, calendar_test, datemath_test, colorpicker_test, paginator_test, json_test, datatable_test" />
<target name="examples"
- depends="init, core, example_data, autocomplete_examples, connection_examples, event_examples, container_examples, button_examples, layout_examples"/>
+ depends="init, core, example_data, autocomplete_examples, connection_examples, event_examples, container_examples, button_examples, layout_examples, datatable_examples"/>
<target name="autocomplete_examples"
depends="init, core, autocomplete_basic_array_ex" />
@@ -903,5 +912,8 @@
<target name="layout_examples"
depends="init, core, layout1_ex, layout2_ex, layout3_ex, layout4_ex" />
+
+ <target name="datatable_examples"
+ depends="init, core, datatable1_ex" />
</project>
View
271 test_results.txt
@@ -1,271 +0,0 @@
-SUMMARY
- Core___ PASS
- - yahoo: PASS (no substitute triggering dump)
- - dom: PASS (no Dom.get(Element instance) calls or setStyle fontFamily)
- - event: PASS
-
- Utils___ PENDING
- - animation: PASS
- - connection: PASS (no XML responses and no setForm)
- - cookie: FAIL (expected)
- - datasource:
- - dd: PASS (no outer drag handle. Drag element can lose conx with rapid mouse)
- - element: PASS (no setStyle fontFamily)
- - get:
- - history:
- - imageloader:
- - json:
- - resize:
- - selector:
-
- Widgets___ PENDING
- - treeview: TENTATIVE PASS (not thoroughly tested)
- - tabview: TENTATIVE PASS (not thoroughly tested)
- - AutoComplete: TENTATIVE PASS (w bug workaround, not thoroughly tested)
-
- Tools___
- - profiler: PASS (no registerObject("{fn:function(){..}}") or registerFunction("foo.bar"))
- - yuitest:
- - logger:
-
-
-DETAIL
-
-animation (Passed:5 Failed:0 Total:5)
- - Tests appear to be passing before completion of the animations
- - The animations work, however
-
-autocomplete (Passed:14 Failed:1 Total:15)
- - Bug #1074 el.appendChild(el2) return undefined (patched in Felix head)
- - Bug #1075 focus/blur listeners not executed (workaround found in
- tests/examples/ac_basic_array_clean.html)
- * testExpandCollapseContainer: Expected container to be closed again
- Expected: (string)
- Actual:none (string)
-
-connection ()
- - Simple example as test passes
- - 4 YDN examples work, 1 Fails because o.responseXML is {} (bug #1073)
-
- ** Unable to get test suite running **
- - bug #1064:
- - Caja can't locate form elements by frm.foo. You have to do
- frm.elements.foo.
- - frm.elements.radioGroupName returns a single input (how to get others?)
- - document.forms returns undefined
-
-cookie (Passed:137 Failed:31 Total:168) -- EXPECTED TO FAIL
- * testGetComplex: Retrieved cookie value is incorrect.
- Expected: Nicholas Zakas (string)
- Actual:null (object)
- * testGetComplexWithTrueRaw: Retrieved cookie value is
- incorrect.
- Expected: as.bd ed|ieh,~!!@#$%^*=098345|}{<>? (string)
- Actual:null (object)
- * testGetSubsComplex: UnexpectedError: invalid "in" operand:
- null
- * testGetSubSimple: Subcookie value is incorrect.
- Expected: d (string)
- Actual:null (object)
- * testGetSubComplex: Subcookie value is wrong.
- Expected: no way (string)
- Actual:null (object)
- * testGetSubWithBooleanConverter: Retrieved subcookie value
- should be a boolean. Unexpected: null (object)
- * testGetSubWithNumberConverter: Retrieved subcookie value
- should be a number. Unexpected: null (object)
- * testGetSubWithCustomConverter: Retrieved subcookie value
- should be a boolean. Unexpected: null (object)
- * testGetSubWithInvalidConverter: Retrieved subcookie value
- should be a string. Unexpected: null (object)
- * testSubGetSpecial: Sub cookie string is incorrect.
- Expected: Something with & and = (string)
- Actual:null (object)
- * testRemoveSubSimple: Cookie string is incorrect.
- Expected:
- data=a=b&e=f&g=h&found=true&count=11&age=29&title=f2e&stuff=no
- %20way&special=Something%20with%20%26%20and%20%3D (string)
- Actual: (string)
- * testRemoveLastSub: Cookie string is incorrect.
- Expected: (string)
- Actual:null (object)
- * testRemoveLastSubWithFalseRemoveIfEmpty: Cookie string is
- incorrect.
- Expected: (string)
- Actual:null (object)
- * testRemoveNotLastSubWithTrueRemoveIfEmpty: Cookie string is
- incorrect.
- Expected:
- data=a=b&e=f&g=h&found=true&count=11&age=29&title=f2e&stuff=no
- %20way&special=Something%20with%20%26%20and%20%3D (string)
- Actual: (string)
- * testRemoveNotLastSubWithFalseRemoveIfEmpty: Cookie string is
- incorrect.
- Expected:
- data=a=b&e=f&g=h&found=true&count=11&age=29&title=f2e&stuff=no
- %20way&special=Something%20with%20%26%20and%20%3D (string)
- Actual: (string)
- * testRemoveNotLastSubWithInvalidRemoveIfEmpty: Cookie string
- is incorrect.
- Expected:
- data=a=b&e=f&g=h&found=true&count=11&age=29&title=f2e&stuff=no
- %20way&special=Something%20with%20%26%20and%20%3D (string)
- Actual: (string)
- * testRemoveSimple: Cookie value should be null.
- Expected: null (object)
- Actual: (string)
- * testSetMulti: Cookies were not set to document.
- Expected: data=1234; name=Nicholas%20C.%20Zakas (string)
- Actual:name=Nicholas%20C.%20Zakas (string)
- * testSetSimpleWithPath: Cookie was not set to document.
- Expected: name=value (string)
- Actual:name=value; path=/ (string)
- * testSetSimpleWithExpiry: Cookie was not set to document.
- Expected: name=value (string)
- Actual:name=value; expires=Wed, 01 Jan 2070 00:00:00 GMT
- (string)
- * testSetComplexWithPath: Cookie was not set to document.
- Expected:
- c.f%20name=as.bd%20ed%7Cieh%2C~!!%40%23%24%25%5E*%3D098345%7C%
- 7D%7B%3C%3E%3F (string)
- Actual:c.f%20name=as.bd%20ed%7Cieh%2C~!!%40%23%24%25%5E*%3D098
- 345%7C%7D%7B%3C%3E%3F; path=/ (string)
- * testSetComplexWithExpiry: Cookie was not set to document.
- Expected:
- c.f%20name=as.bd%20ed%7Cieh%2C~!!%40%23%24%25%5E*%3D098345%7C%
- 7D%7B%3C%3E%3F (string)
- Actual:c.f%20name=as.bd%20ed%7Cieh%2C~!!%40%23%24%25%5E*%3D098
- 345%7C%7D%7B%3C%3E%3F; expires=Wed, 01 Jan 2070 00:00:00 GMT
- (string)
- * testSetSubSimpleWithPath: Cookie was not set to document.
- Expected: name=sub=value (string)
- Actual:name=sub=value; path=/ (string)
- * testSetSubSimpleWithExpiry: Cookie was not set to document.
- Expected: name=sub=value (string)
- Actual:name=sub=value; expires=Wed, 01 Jan 2070 00:00:00 GMT
- (string)
- * testSetSubsSimpleWithPath: Cookie was not set to document.
- Expected: data=a=b&c=d&e=f&g=h (string)
- Actual:data=a=b&c=d&e=f&g=h; path=/ (string)
- * testSetSubsSimpleWithExpiry: Cookie was not set to document.
- Expected: data=a=b&c=d&e=f&g=h (string)
- Actual:data=a=b&c=d&e=f&g=h; expires=Wed, 01 Jan 2070
- 00:00:00 GMT (string)
-
-datasource (Passed:12 Failed:3 Total:15)
- * testLocalContruction: UnexpectedError: not found:
- ActiveXObject
- * testXHRSendRequest: XHR failure case.
- * testXHRHTMLTable: XHR failure case
-
-dd (Passed:5 Failed:3 Total:8)
- * test_dragOver: dragOver should have fired 5 times
- Expected: 5 (number)
- Actual:7 (number)
- * test_bodyScroll: dragOver should have fired 5 times
- Expected: 5 (number)
- Actual:7 (number)
- * test_containerScroll: dragOver should have fired 5 times
- Expected: 5 (number)
- Actual:7 (number)
- - From non-yuitest page:
- Inner drag handles work, but mouse activity can disconnect with element, causing the element to stay put while the mouse moves around. Mouseup does not change this. In fact, after disconnect, mouseover will latch on to the element again despite button state.
-
-dom (Passed:31 Failed:1 Total:34) -- FAILURE IS NOT CRITICAL
- * test_setAttribute: Y.Dom.setAttribute(el, 'for', 'foo')
- Expected: foo (string)
- Actual:undefined (undefined)
- REASON: setAttribute in caja does not propagate to htmlFor attribute (bug #1066)
-
-element (Passed:11 Failed:2 Total:13) -- FAILURES ARE NOT CRITICAL
- * test_DomEvent: UnexpectedError: Unrecognized event type MouseEvents
- * test_attribute: UnexpectedError: bad value `tahoma` for CSS property fontFamily
- - REASON: el.style.fontFamily only accepts 'serif', 'sans-serif', and 'monospace' (bug #1069)
-
-event
- - No formal test suite
- - test gadget works for all event related items
- - all examples work
-
-get
- - No formal test suite
- - no expectation it will work
-
-history
- - No formal test suite
- - no expectation it will work
-
-imageloader
- - test won't cajole because of abs URLs?
-
-json
- - bug to fork behavior for caja env
- - test suite needs to be migrated from yui3
-
-profiler (Passed:13 Failed:1 Total:14)
- * testRegisterGlobalFunctionOnGlobalObject: UnexpectedError:
- not found: eval
-
-resize
- - in Test dir
-
-selector (Passed:4 Failed:8 Total:12)
- * testTest: type=checkbox:checked
- Expected: true (boolean)
- Actual:false (boolean)
- * testNthLastChild: 2n+1
- Expected: <LI> (object)
- Actual:undefined (undefined)
- * testNthType: odd
- Expected: <LI> (object)
- Actual:undefined (undefined)
- * testNthChild: 3n+1
- Expected: <LI> (object)
- Actual:undefined (undefined)
- * testSelector: UnexpectedError: callMethod: p, p,, has no
- method callee
- * testPseudo: contains(demo2)
- Expected: true (boolean)
- Actual:false (boolean)
- * testAttr: [title="this is a [demo]"]
- Expected: true (boolean)
- Actual:false (boolean)
- * testOffDom: UnexpectedError: obj is null
-
-tabview (Passed:8 Failed:0 Total:8)
-
-yahoo (Passed:16 Failed:6 Total:22)
- * test_config: Values in position 0 are not equal.
- Expected: yahoo (string)
- Actual:undefined (undefined)
- ???
- * test_is_array: Element collections are array-like, but not
- arrays
- Expected: false (boolean)
- Actual:true (boolean)
- EXPECTED BEHAVIOR
- * test_is_array_xframe: UnexpectedError: not found: xframe
- EXPECTED BEHAVIOR
- * test_is_function_xframe: UnexpectedError: not found: xframe
- EXPECTED BEHAVIOR
- * test_is_object_xframe: UnexpectedError: not found: xframe
- EXPECTED BEHAVIOR
- * test_substitute: failed one level object dump
- Expected: {level1_1 => 1.1, level1_2 => 1.2, level1_3 =>
- {...}, level1_4 => 1.4} (string)
- Actual:[object Object] (string)
- REASON: substitute checks that an object's toString method is
- Object.proto.toString. If not, it calls the "custom" toString.
- Caja applies a !O.p toString.
-
-yuiloader
- - Not tested
-
-yuitest (Passed:49 Failed:68 Total:118)
- * testJsonFormat: UnexpectedError: Cannot read property
- "stringify" from undefined
- * testXmlFormat: UnexpectedError: callMethod: [object Object]
- has no method callee
- * everything iframe related (4)
- * all MouseEvents tests (44)
- * all KeyEvent tests (18)
View
34 tests/examples/staged/dt_basic_clean.html → tests/examples/dt_basic_clean.html
@@ -18,13 +18,13 @@
}
</style>
-<link rel="stylesheet" type="text/css" href="../../yui2/build/fonts/fonts-min.css" />
-<link rel="stylesheet" type="text/css" href="../../yui2/build/datatable/assets/skins/sam/datatable.css" />
-<!--script type="text/javascript" src="../../build/yahoo-dom-event/yahoo-dom-event.js"></script-->
-<!--script type="text/javascript" src="../../build/dragdrop/dragdrop-min.js"></script-->
-<!--script type="text/javascript" src="../../build/element/element-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datasource/datasource-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datatable/datatable-min.js"></script-->
+<link rel="stylesheet" type="text/css" href="yui/fonts/fonts-min.css" />
+<link rel="stylesheet" type="text/css" href="yui/datatable/assets/skins/sam/datatable.css" />
+<script type="text/javascript" src="yui/yahoo-dom-event/yahoo-dom-event.js"></script>
+<script type="text/javascript" src="yui/dragdrop/dragdrop-min.js"></script>
+<script type="text/javascript" src="yui/element/element-min.js"></script>
+<script type="text/javascript" src="yui/datasource/datasource-min.js"></script>
+<script type="text/javascript" src="yui/datatable/datatable-min.js"></script>
<!--begin custom header content for this example-->
@@ -37,7 +37,7 @@
</head>
-<body class=" yui-skin-sam">
+<body class="yui-skin-sam">
<h1>Basic Example</h1>
@@ -46,21 +46,18 @@
<p>A demonstration of the DataTable's basic feature set.</p>
</div>
-
-<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== -->
-
<div id="basic"></div>
-<!--script type="text/javascript" src="assets/js/data.js"></script-->
+<script type="text/javascript" src="assets/datatable/js/data.js"></script>
<script type="text/javascript">
YAHOO.util.Event.addListener(window, "load", function() {
YAHOO.example.Basic = function() {
var myColumnDefs = [
- {key:"id", sortable:true, resizeable:true},
- {key:"date", formatter:YAHOO.widget.DataTable.formatDate, sortable:true, sortOptions:{defaultDir:YAHOO.widget.DataTable.CLASS_DESC},resizeable:true},
- {key:"quantity", formatter:YAHOO.widget.DataTable.formatNumber, sortable:true, resizeable:true},
- {key:"amount", formatter:YAHOO.widget.DataTable.formatCurrency, sortable:true, resizeable:true},
- {key:"title", sortable:true, resizeable:true}
+ {key:"id", sortable:true},
+ {key:"date", formatter:YAHOO.widget.DataTable.formatDate, sortable:true, sortOptions:{defaultDir:YAHOO.widget.DataTable.CLASS_DESC}},
+ {key:"quantity", formatter:YAHOO.widget.DataTable.formatNumber, sortable:true},
+ {key:"amount", formatter:YAHOO.widget.DataTable.formatCurrency, sortable:true},
+ {key:"title", sortable:true},
];
var myDataSource = new YAHOO.util.DataSource(YAHOO.example.Data.bookorders);
@@ -80,8 +77,5 @@
});
</script>
-<!--END SOURCE CODE FOR EXAMPLE =============================== -->
-
</body>
</html>
-<!-- presentbright.corp.yahoo.com uncompressed/chunked Thu Feb 19 10:53:11 PST 2009 -->
View
2  tests/js/data.js
@@ -85,7 +85,7 @@ YAHOO.namespace('caja').data = {
examples: 15, tests : [13,0,0] },
{ module:'datatable', status: 'pending',
- cajoled: true, yuitest: 'pending', examples: 0, tests : [0,0,0] },
+ cajoled: true, yuitest: 'test=datatable', examples: 31, tests : [63,4,11] },
{ module:'menu', status: 'wip',
cajoled: true, yuitest: 'include=container&test=menu',
View
3  tests/js/examples.js
@@ -73,5 +73,8 @@ YAHOO.namespace('caja').examples = {
],
treeview: [
'[[suffix=gadget&test=treeview]Simple test]'
+ ],
+ datatable: [
+ '[[suffix=example&test=datatable1]Basic example]'
]
};
View
3  tests/js/notes.js
@@ -44,6 +44,9 @@ YAHOO.namespace('caja').notes = {
editor: [
"[[#1120]Missing document.compatMode] may be causing some issues"
],
+ datatable: [
+ "Column resizing won't work because the two ways to accomplish the task (dynamic stylesheets and generated Function) are both verboten in Caja"
+ ],
get: [
"No expectation for this to work, though that may change"
],
View
24 tests/yuitests/staged/datatable.html → tests/yuitests/datatable.html
@@ -1,22 +1,22 @@
<html>
<head>
<title>YUI DataTable Tests</title>
-<link type="text/css" rel="stylesheet" href="../../../build/logger/assets/skins/sam/logger.css" />
-<link type="text/css" rel="stylesheet" href="../../../build/yuitest/assets/testlogger.css" />
-<link type="text/css" rel="stylesheet" href="../../../build/datatable/assets/skins/sam/datatable.css" />
+<link type="text/css" rel="stylesheet" href="yui/logger/assets/logger.css" />
+<link type="text/css" rel="stylesheet" href="yui/yuitest/assets/testlogger.css" />
+<link type="text/css" rel="stylesheet" href="yui/datatable/assets/skins/sam/datatable.css" />
<style type="text/css">
.yui-skin-sam .yui-log .yui-log-bd {height:60em;margin-top:2em;}
</style>
-<script type="text/javascript" src="../../../build/yahoo/yahoo-min.js"></script>
-<script type="text/javascript" src="../../../build/dom/dom-min.js"></script>
-<script type="text/javascript" src="../../../build/event/event-min.js"></script>
-<script type="text/javascript" src="../../../build/logger/logger-min.js"></script>
-<script type="text/javascript" src="../../../build/yuitest/yuitest.js"></script>
-<script type="text/javascript" src="../../../build/element/element-min.js"></script>
-<script type="text/javascript" src="../../../build/datasource/datasource-min.js"></script>
-<script type="text/javascript" src="../../../build/datatable/datatable.js"></script>
-<script type="text/javascript" src="../../../build/paginator/paginator.js"></script>
+<script type="text/javascript" src="yui/yahoo/yahoo-min.js"></script>
+<script type="text/javascript" src="yui/dom/dom-min.js"></script>
+<script type="text/javascript" src="yui/event/event-min.js"></script>
+<script type="text/javascript" src="yui/logger/logger-min.js"></script>
+<script type="text/javascript" src="yui/yuitest/yuitest.js"></script>
+<script type="text/javascript" src="yui/element/element-min.js"></script>
+<script type="text/javascript" src="yui/datasource/datasource-min.js"></script>
+<script type="text/javascript" src="yui/datatable/datatable.js"></script>
+<script type="text/javascript" src="yui/paginator/paginator.js"></script>
<script type="text/javascript" src="datatable/DataTable.js"></script>
<script type="text/javascript" src="datatable/ColumnSet.js"></script>
View
0  tests/yuitests/staged/datatable/ColumnSet.js → tests/yuitests/datatable/ColumnSet.js
File renamed without changes
View
0  tests/yuitests/staged/datatable/DataTable.js → tests/yuitests/datatable/DataTable.js
File renamed without changes
View
0  tests/yuitests/staged/datatable/RecordSet.js → tests/yuitests/datatable/RecordSet.js
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.