Add a test for index()
This commit is contained in:
parent
87869b8b81
commit
8e54b167cf
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue