Skip to content
Permalink
Browse files

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

  • Loading branch information
flesler committed Jul 1, 2008
1 parent 96e4006 commit a23e4361fc0221ca6132e962a5a8b2030bd1c390
Showing with 3 additions and 1 deletion.
  1. +3 −1 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() {

0 comments on commit a23e436

Please sign in to comment.
You can’t perform that action at this time.