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

Function test_enum

test/fixtures/wpt/user-timing/resources/webperftestharness.js:63–70  ·  view source on GitHub ↗
(parent_name, enum_name, value, properties)

Source from the content-addressed store, hash-verified

61}
62
63function test_enum(parent_name, enum_name, value, properties)
64{
65 var msg = 'window.performance.' + parent_name + '.' + enum_name + ' is defined.';
66 wp_test(function() { assert_not_equals(performanceNamespace[parent_name][enum_name], undefined, msg); }, msg, properties);
67
68 msg = 'window.performance.' + parent_name + '.' + enum_name + ' = ' + value;
69 wp_test(function() { assert_equals(performanceNamespace[parent_name][enum_name], value, msg); }, msg, properties);
70}
71
72function test_timing_order(attribute_name, greater_than_attribute, properties)
73{

Callers

nothing calls this directly

Calls 3

wp_testFunction · 0.50
assert_not_equalsFunction · 0.50
assert_equalsFunction · 0.50

Tested by

no test coverage detected