MCPcopy Create free account
hub / github.com/nodejs/node / doTest

Function doTest

test/fixtures/wpt/webstorage/storage_key.window.js:12–19  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

10
11 var keys = ["name", "age", "a", "b"];
12 function doTest(index) {
13 test(function() {
14 var key = storage.key(index);
15 assert_not_equals(key, null);
16 assert_true(keys.indexOf(key) >= 0,
17 "Unexpected key " + key + " found.");
18 }, name + ".key(" + index + ") should return the right thing.");
19 }
20 for (var i = 0; i < keys.length; ++i) {
21 doTest(i);
22 doTest(i + 0x100000000);

Callers 1

Calls 5

testFunction · 0.50
assert_not_equalsFunction · 0.50
assert_trueFunction · 0.50
keyMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected