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

Function wp_test

test/fixtures/wpt/common/performance-timeline-utils.js:7–23  ·  view source on GitHub ↗
(func, msg, properties)

Source from the content-addressed store, hash-verified

5var performanceNamespace = window.performance;
6var namespace_check = false;
7function wp_test(func, msg, properties)
8{
9 // only run the namespace check once
10 if (!namespace_check)
11 {
12 namespace_check = true;
13
14 if (performanceNamespace === undefined || performanceNamespace == null)
15 {
16 // show a single error that window.performance is undefined
17 // The window.performance attribute provides a hosting area for performance related attributes.
18 test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null.");
19 }
20 }
21
22 test(func, msg, properties);
23}
24
25function test_true(value, msg, properties)
26{

Callers 14

test_trueFunction · 0.70
test_equalsFunction · 0.70
test_namespaceFunction · 0.50
test_attribute_existsFunction · 0.50
test_enumFunction · 0.50
test_timing_orderFunction · 0.50
test_greater_thanFunction · 0.50
test_greater_or_equalsFunction · 0.50
test_not_equalsFunction · 0.50
test_method_existsFunction · 0.50
test_noless_thanFunction · 0.50

Calls 2

testFunction · 0.50
assert_trueFunction · 0.50

Tested by

no test coverage detected