aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2012-05-28 14:35:01 -0400
committertimmywil <timmywillisn@gmail.com>2012-05-28 15:07:39 -0400
commit66cf58e79fcd80284b905e17b4765b7b0ce367f8 (patch)
treec33fac43cb14a2bbc687585d02a87b487a9dd4e4
parent22d2fe367925d4ab4978dcca4866cbdd9c638547 (diff)
downloadjquery-66cf58e79fcd80284b905e17b4765b7b0ce367f8.tar.gz
jquery-66cf58e79fcd80284b905e17b4765b7b0ce367f8.zip
Move length tests to jQuery's selector tests as it relates to jQuery.merge.
m---------src/sizzle0
-rw-r--r--test/unit/selector.js5
2 files changed, 4 insertions, 1 deletions
diff --git a/src/sizzle b/src/sizzle
-Subproject 9284760ac2e0518502d9dd4cf1305a2156b36d8
+Subproject e82e70ed2e8b79daf9791a14fa8ff67cfb97f18
diff --git a/test/unit/selector.js b/test/unit/selector.js
index d00dc153e..7902742b1 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -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" );
});