From 6f4b08cdf9cb334f8531fe06a20153defb7f95b6 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 14 Feb 2009 18:10:45 +0000 Subject: Added support for sorting in Safari - when querySelectorAll isn't able to be used. --- test/unit/selector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/unit/selector.js') diff --git a/test/unit/selector.js b/test/unit/selector.js index 2ab7e6a3a..715823a6f 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -1,7 +1,7 @@ module("selector"); test("element", function() { - expect(13); + expect(14); reset(); ok( jQuery("*").size() >= 30, "Select all" ); @@ -24,6 +24,7 @@ test("element", function() { isSet( jQuery("p"), jQuery("p, div p"), "Check for duplicates: p, div p" ); t( "Checking sort order", "h2, h1", ["header", "banner", "userAgent"] ); + t( "Checking sort order", "h2:first, h1:first", ["header", "banner"] ); t( "Checking sort order", "p, p a", ["firstp", "simon1", "ap", "google", "groups", "anchor1", "mark", "sndp", "en", "yahoo", "sap", "anchor2", "simon", "first"] ); }); -- cgit v1.2.3