aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/selector.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2012-09-19 20:46:18 -0400
committerTimmy Willison <timmywillisn@gmail.com>2012-09-19 20:46:18 -0400
commit6ad4a0ef3422f8c5b99428dbfdbb6000cbc4eca2 (patch)
tree54feff5553ed272bbbd3007ddffc9bdd5511f7b5 /test/unit/selector.js
parentc9b894c98c41f0265a4442610aac3aca74976126 (diff)
downloadjquery-6ad4a0ef3422f8c5b99428dbfdbb6000cbc4eca2.tar.gz
jquery-6ad4a0ef3422f8c5b99428dbfdbb6000cbc4eca2.zip
Update Sizzle: fix a failing test in traversing. Move an attribute selector test to jQuery-only.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r--test/unit/selector.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js
index 2c3680091..60d3e297d 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -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 ) {