diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-07-16 07:32:17 +0000 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-07-16 07:32:17 +0000 |
commit | 8e54b167cf60a6efa0e572d31f3886c3cfe74c0b (patch) | |
tree | 90425222a5ea764920eeeb0cae15744c471d644f /test/unit/core.js | |
parent | 87869b8b81380617cfad8788799ee40de0e3e9c4 (diff) | |
download | jquery-8e54b167cf60a6efa0e572d31f3886c3cfe74c0b.tar.gz jquery-8e54b167cf60a6efa0e572d31f3886c3cfe74c0b.zip |
Add a test for index()
Diffstat (limited to 'test/unit/core.js')
-rw-r--r-- | test/unit/core.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index 0f6d5b34e..a6f490c47 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); |