Commit 8e54b167 authored by Yehuda Katz's avatar Yehuda Katz

Add a test for index()

parent 87869b8b
...@@ -386,6 +386,12 @@ test("each(Function)", function() { ...@@ -386,6 +386,12 @@ test("each(Function)", function() {
ok( pass, "Execute a function, Relative" ); 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() { test("index(Object|String|undefined)", function() {
expect(16); expect(16);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment