expect(8);\r
isSet( $("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" );\r
isSet( $("#sndp").add( $("#en")[0] ).add( $("#sap") ).get(), q("sndp", "en", "sap"), "Check elements from document" );\r
- ok( $([]).add($("#form")[0].elements).length >= 13, "Check elements from array" );\r
+ equals( $([]).add($("#form")[0].elements).length, 15, "Check elements from array" );\r
\r
// For the time being, we're discontinuing support for $(form.elements) since it's ambiguous in IE\r
// use $([]).add(form.elements) instead.\r
equals( x[1].id, "x2", "Check on-the-fly element2" );\r
\r
var notDefined;\r
- equals( $([]).add(notDefined).length, 0, "Check that undefined adds nothing." );\r
+ equals( $([]).add(notDefined).length, 0, "Check that undefined adds nothing" );\r
});\r
\r
test("each(Function)", function() {\r
});\r
\r
test("$.makeArray", function(){\r
- expect(14);\r
+ expect(15);\r
\r
equals( $.makeArray($('html>*'))[0].nodeName, "HEAD", "Pass makeArray a jQuery object" );\r
\r
equals( $.makeArray(window)[0], window, "Pass makeArray the window" );\r
\r
equals( $.makeArray(/a/)[0].constructor, RegExp, "Pass makeArray a regex" );\r
+ \r
+ equals( $.makeArray(document.getElementById('form')).length, 15, "Pass makeArray a form (treat as elements)" );\r
});
\ No newline at end of file