Move array.forEach to be old library-specific, and use $.each for
jQuery libs.
Patch by fu.
diffs (35 lines):
diff -r f28611519cb3 -r 0dc6fb714407 views/dev/tests/libfunctions.js
--- a/views/dev/tests/libfunctions.js Mon Feb 28 20:31:11 2011 +0800
+++ b/views/dev/tests/libfunctions.js Mon Feb 28 21:15:17 2011 +0800
@@ -159,7 +159,6 @@ test( "Check all", function() {
ok( o, "CheckallButton" );
});
-module( "*libfunctions" );
test( "array tests", function () {
expect(4);
@@ -175,6 +174,23 @@ test( "array tests", function () {
});
});
+module( "jquery" );
+test( "array tests", function () {
+ expect(4);
+
+ var array = new Array();
+ array.push( "a" );
+ array.push( "b" );
+ array.push( "c" );
+
+ equals( 3, array.length, "Check array size" );
+
+ $.each( array, function(index, element) {
+ equals( element, array[index] );
+ });
+});
+
+module( "*libfunctions" );
test("object tests", function() {
// expect(1);
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog