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

Function test_namespace

test/fixtures/wpt/user-timing/resources/webperftestharness.js:44–55  ·  view source on GitHub ↗
(child_name, skip_root)

Source from the content-addressed store, hash-verified

42}
43
44function test_namespace(child_name, skip_root)
45{
46 if (skip_root === undefined) {
47 var msg = 'window.performance is defined';
48 wp_test(function () { assert_not_equals(performanceNamespace, undefined, msg); }, msg);
49 }
50
51 if (child_name !== undefined) {
52 var msg2 = 'window.performance.' + child_name + ' is defined';
53 wp_test(function() { assert_not_equals(performanceNamespace[child_name], undefined, msg2); }, msg2);
54 }
55}
56
57function test_attribute_exists(parent_name, attribute_name, properties)
58{

Callers

nothing calls this directly

Calls 2

wp_testFunction · 0.50
assert_not_equalsFunction · 0.50

Tested by

no test coverage detected