aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2008-01-14 20:40:05 +0000
committerJohn Resig <jeresig@gmail.com>2008-01-14 20:40:05 +0000
commitd0fae71464427d9b9e29a5e3fa27729675bef95a (patch)
tree3bdf596589f66986face136323b0b20bea7ed67a /test/unit
parent2e6c123c875991792a8a701e108248e0b89524d4 (diff)
downloadjquery-d0fae71464427d9b9e29a5e3fa27729675bef95a.tar.gz
jquery-d0fae71464427d9b9e29a5e3fa27729675bef95a.zip
Discontinued the test for $(form.elements).
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/core.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index 1d8fb6d99..a5a59c3a1 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -252,11 +252,14 @@ test("get(Number)", function() {
});
test("add(String|Element|Array|undefined)", function() {
- expect(9);
+ expect(8);
isSet( $("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" );
isSet( $("#sndp").add( $("#en")[0] ).add( $("#sap") ).get(), q("sndp", "en", "sap"), "Check elements from document" );
ok( $([]).add($("#form")[0].elements).length >= 13, "Check elements from array" );
- equals( $([]).add($("#form")[0].elements).length, $($("#form")[0].elements).length, "Array in constructor must equals array in add()" );
+
+ // For the time being, we're discontinuing support for $(form.elements) since it's ambiguous in IE
+ // use $([]).add(form.elements) instead.
+ //equals( $([]).add($("#form")[0].elements).length, $($("#form")[0].elements).length, "Array in constructor must equals array in add()" );
var x = $([]).add($("<p id='x1'>xxx</p>")).add($("<p id='x2'>xxx</p>"));
ok( x[0].id == "x1", "Check on-the-fly element1" );