Fixed tests for gt/lt
This commit is contained in:
parent
200319ea6b
commit
9b0aaeebea
6
src/jquery/coreTest.js
vendored
6
src/jquery/coreTest.js
vendored
|
@ -644,7 +644,7 @@ test("empty()", function() {
|
||||||
|
|
||||||
test("eq(), gt(), lt(), contains()", function() {
|
test("eq(), gt(), lt(), contains()", function() {
|
||||||
ok( $("#ap a").eq(1)[0].id == "groups", "eq()" );
|
ok( $("#ap a").eq(1)[0].id == "groups", "eq()" );
|
||||||
ok( $("#ap a").gt(1).get(), q("groups", "anchor1", "mark"), "gt()" );
|
isSet( $("#ap a").gt(0).get(), q("groups", "anchor1", "mark"), "gt()" );
|
||||||
ok( $("#ap a").lt(2).get(), q("google", "groups", "anchor1"), "lt()" );
|
isSet( $("#ap a").lt(3).get(), q("google", "groups", "anchor1"), "lt()" );
|
||||||
ok( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" );
|
isSet( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" );
|
||||||
});
|
});
|
Loading…
Reference in a new issue