Skip to content

Commit 66cf58e

Browse files
committed
Move length tests to jQuery's selector tests as it relates to jQuery.merge.
1 parent 22d2fe3 commit 66cf58e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/sizzle

test/unit/selector.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55
module("selector - jQuery only", { teardown: moduleTeardown });
66

77
test("element - jQuery only", function() {
8-
expect( 5 );
8+
expect( 7 );
99

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

15+
ok( jQuery("#length").length, "\<input name=\"length\"\> cannot be found under IE, see #945" );
16+
ok( jQuery("#lengthtest input").length, "\<input name=\"length\"\> cannot be found under IE, see #945" );
17+
1518
//#7533
1619
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" );
1720
});

0 commit comments

Comments
 (0)