Skip to content

Commit

Permalink
Move length tests to jQuery's selector tests as it relates to jQuery.…
Browse files Browse the repository at this point in the history
…merge.
  • Loading branch information
timmywil committed May 28, 2012
1 parent 22d2fe3 commit 66cf58e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sizzle
Submodule sizzle updated 3 files
+2 −2 sizzle.js
+5,303 −2,817 test/jquery.js
+2 −5 test/unit/selector.js
5 changes: 4 additions & 1 deletion test/unit/selector.js
Expand Up @@ -5,13 +5,16 @@
module("selector - jQuery only", { teardown: moduleTeardown });

test("element - jQuery only", function() {
expect( 5 );
expect( 7 );

deepEqual( jQuery("p", document.getElementsByTagName("div")).get(), q("firstp","ap","sndp","en","sap","first"), "Finding elements with a context." );
deepEqual( jQuery("p", "div").get(), q("firstp","ap","sndp","en","sap","first"), "Finding elements with a context." );
deepEqual( jQuery("p", jQuery("div")).get(), q("firstp","ap","sndp","en","sap","first"), "Finding elements with a context." );
deepEqual( jQuery("div").find("p").get(), q("firstp","ap","sndp","en","sap","first"), "Finding elements with a context." );

ok( jQuery("#length").length, "\<input name=\"length\"\> cannot be found under IE, see #945" );
ok( jQuery("#lengthtest input").length, "\<input name=\"length\"\> cannot be found under IE, see #945" );

//#7533
equal( jQuery("<div id=\"A'B~C.D[E]\"><p>foo</p></div>").find("p").length, 1, "Find where context root is a node and has an ID with CSS3 meta characters" );
});
Expand Down

0 comments on commit 66cf58e

Please sign in to comment.