]> source.dussan.org Git - jquery.git/commitdiff
Update Sizzle: fix a failing test in traversing. Move an attribute selector test...
authorTimmy Willison <timmywillisn@gmail.com>
Thu, 20 Sep 2012 00:46:18 +0000 (20:46 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Thu, 20 Sep 2012 00:46:18 +0000 (20:46 -0400)
src/sizzle
test/unit/selector.js

index 831c9c489ef90134436449b5c732f93f0a0b29bb..ed5c22e10fc42805486ff4e501e0e7e5c4b9546b 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 831c9c489ef90134436449b5c732f93f0a0b29bb
+Subproject commit ed5c22e10fc42805486ff4e501e0e7e5c4b9546b
index 2c36800919e8e1185ab6d7eb44db8c099dabe8aa..60d3e297d15ee7eb9458e31fc94811d22eb81c1c 100644 (file)
@@ -29,9 +29,15 @@ test("class - jQuery only", function() {
 });
 
 test("attributes - jQuery only", function() {
-       expect( 1 );
+       expect( 2 );
 
        t( "Find elements with a tabindex attribute", "[tabindex]", ["listWithTabIndex", "foodWithNegativeTabIndex", "linkWithTabIndex", "linkWithNegativeTabIndex", "linkWithNoHrefWithTabIndex", "linkWithNoHrefWithNegativeTabIndex"] );
+       // jQuery #12523
+       deepEqual(
+               jQuery.find( "[title]", null, null, jQuery("#qunit-fixture a").get().concat( document.createTextNode("") ) ),
+               q("google"),
+               "Text nodes fail attribute tests without exception"
+       );
 });
 
 if ( jQuery.css ) {