Added support for sorting in Safari - when querySelectorAll isn't able to be used.

This commit is contained in:
John Resig 2009-02-14 18:10:45 +00:00
parent d75c899fe7
commit 6f4b08cdf9
3 changed files with 17 additions and 3 deletions

View file

@ -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"] );
});