X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=test%2Funit%2Fcore.js;h=dbf23e7d3f9f036870945dc81d3cae0b692bcd33;hb=a23e4361fc0221ca6132e962a5a8b2030bd1c390;hp=dda7929231e5a3cdcce3b14ec204e2e36f83bbe0;hpb=96e4006b74d03319af86b9ed27f7235ee2f8fe6c;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index dda7929..dbf23e7 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1575,13 +1575,15 @@ test("empty()", 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), 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(-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')" ); }); test("map()", function() {