Skip to content
Permalink
Browse files

Add a test for index()

  • Loading branch information
wycats committed Jul 16, 2009
1 parent 87869b8 commit 8e54b167cf60a6efa0e572d31f3886c3cfe74c0b
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/unit/core.js
@@ -386,6 +386,12 @@ test("each(Function)", function() {
ok( pass, "Execute a function, Relative" );
});

test("index()", function() {
expect(1);

equals( jQuery("#text2").index(), 2, "Returns the index of a child amongst its siblings" )
});

test("index(Object|String|undefined)", function() {
expect(16);

0 comments on commit 8e54b16

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