aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/core.js
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-07-16 07:32:17 +0000
committerYehuda Katz <wycats@gmail.com>2009-07-16 07:32:17 +0000
commit8e54b167cf60a6efa0e572d31f3886c3cfe74c0b (patch)
tree90425222a5ea764920eeeb0cae15744c471d644f /test/unit/core.js
parent87869b8b81380617cfad8788799ee40de0e3e9c4 (diff)
downloadjquery-8e54b167cf60a6efa0e572d31f3886c3cfe74c0b.tar.gz
jquery-8e54b167cf60a6efa0e572d31f3886c3cfe74c0b.zip
Add a test for index()
Diffstat (limited to 'test/unit/core.js')
-rw-r--r--test/unit/core.js6
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);