Commit a23e4361 authored by Ariel Flesler's avatar Ariel Flesler

test runner: recloses #3102. Adding one test for $().eq("1")

parent 96e4006b
...@@ -1575,13 +1575,15 @@ test("empty()", function() { ...@@ -1575,13 +1575,15 @@ test("empty()", function() {
}); });
test("slice()", function() { test("slice()", function() {
expect(5); expect(6);
isSet( jQuery("#ap a").slice(1,2), q("groups"), "slice(1,2)" ); isSet( jQuery("#ap a").slice(1,2), q("groups"), "slice(1,2)" );
isSet( jQuery("#ap a").slice(1), q("groups", "anchor1", "mark"), "slice(1)" ); isSet( jQuery("#ap a").slice(1), q("groups", "anchor1", "mark"), "slice(1)" );
isSet( jQuery("#ap a").slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" ); isSet( jQuery("#ap a").slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" );
isSet( jQuery("#ap a").slice(-1), q("mark"), "slice(-1)" ); isSet( jQuery("#ap a").slice(-1), q("mark"), "slice(-1)" );
isSet( jQuery("#ap a").eq(1), q("groups"), "eq(1)" ); isSet( jQuery("#ap a").eq(1), q("groups"), "eq(1)" );
isSet( jQuery("#ap a").eq('1'), q("groups"), "eq('1')" );
}); });
test("map()", function() { test("map()", function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment