🌐 AI搜索 & 代理 主页
Skip to content

Commit 8e54b16

Browse files
committed
Add a test for index()
1 parent 87869b8 commit 8e54b16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/core.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@ test("each(Function)", function() {
386386
ok( pass, "Execute a function, Relative" );
387387
});
388388

389+
test("index()", function() {
390+
expect(1);
391+
392+
equals( jQuery("#text2").index(), 2, "Returns the index of a child amongst its siblings" )
393+
});
394+
389395
test("index(Object|String|undefined)", function() {
390396
expect(16);
391397

0 commit comments

Comments
 (0)