]> source.dussan.org Git - jquery.git/commitdiff
Fixed tests for gt/lt
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 10 Jan 2007 11:11:04 +0000 (11:11 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 10 Jan 2007 11:11:04 +0000 (11:11 +0000)
src/jquery/coreTest.js

index ed7b52ba8408908934ec2b8d40085bd15d7b1191..d8328c9c04537f238c2a645cea695fb6e5a862b1 100644 (file)
@@ -644,7 +644,7 @@ test("empty()", function() {
 \r
 test("eq(), gt(), lt(), contains()", function() {\r
        ok( $("#ap a").eq(1)[0].id == "groups", "eq()" );\r
-       ok( $("#ap a").gt(1).get(), q("groups", "anchor1", "mark"), "gt()" );\r
-       ok( $("#ap a").lt(2).get(), q("google", "groups", "anchor1"), "lt()" );\r
-       ok( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" );\r
+       isSet( $("#ap a").gt(0).get(), q("groups", "anchor1", "mark"), "gt()" );\r
+       isSet( $("#ap a").lt(3).get(), q("google", "groups", "anchor1"), "lt()" );\r
+       isSet( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" );\r
 });
\ No newline at end of file