Skip to content
Permalink
Browse files
Fixed failing test for Safari 2.
  • Loading branch information
jeresig committed Jul 29, 2007
1 parent 17949af commit d8e9f0c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -140,7 +140,7 @@ test("add(String|Element|Array)", function() {
expect(7);
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" );
ok( $([]).add($("#form")[0].elements).length >= 13, "Check elements from array" );

var x = $([]).add($("<p id='x1'>xxx</p>")).add($("<p id='x2'>xxx</p>"));
ok( x[0].id == "x1", "Check on-the-fly element1" );

0 comments on commit d8e9f0c

Please sign in to comment.