aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/selector.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-02-14 18:10:45 +0000
committerJohn Resig <jeresig@gmail.com>2009-02-14 18:10:45 +0000
commit6f4b08cdf9cb334f8531fe06a20153defb7f95b6 (patch)
tree31cc0efc820879efb8889d89f4944c72bc65af08 /test/unit/selector.js
parentd75c899fe78c52d89e5fb757ded979aca126d37b (diff)
downloadjquery-6f4b08cdf9cb334f8531fe06a20153defb7f95b6.tar.gz
jquery-6f4b08cdf9cb334f8531fe06a20153defb7f95b6.zip
Added support for sorting in Safari - when querySelectorAll isn't able to be used.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r--test/unit/selector.js3
1 files changed, 2 insertions, 1 deletions
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"] );
});