From 8e54b167cf60a6efa0e572d31f3886c3cfe74c0b Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Thu, 16 Jul 2009 07:32:17 +0000 Subject: [PATCH] Add a test for index() --- test/unit/core.js | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 1.7.10.4