From 6ad4a0ef3422f8c5b99428dbfdbb6000cbc4eca2 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 19 Sep 2012 20:46:18 -0400 Subject: [PATCH] Update Sizzle: fix a failing test in traversing. Move an attribute selector test to jQuery-only. --- src/sizzle | 2 +- test/unit/selector.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/sizzle b/src/sizzle index 831c9c489..ed5c22e10 160000 --- a/src/sizzle +++ b/src/sizzle @@ -1 +1 @@ -Subproject commit 831c9c489ef90134436449b5c732f93f0a0b29bb +Subproject commit ed5c22e10fc42805486ff4e501e0e7e5c4b9546b 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 ) { -- 2.39.5