X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=a6f490c4739ddb5c2c131a640c5ae932fd6bdd56;hb=8e54b167cf60a6efa0e572d31f3886c3cfe74c0b;hp=0f6d5b34ea38e64c48b781edc389e5c75dc67418;hpb=87869b8b81380617cfad8788799ee40de0e3e9c4;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 0f6d5b3..a6f490c 100644 --- a/test/unit/core.js +++ b/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);