MCPcopy Index your code
hub / github.com/nodejs/node / addSubtest

Method addSubtest

test/common/wpt.js:72–84  ·  view source on GitHub ↗
(name, status, message)

Source from the content-addressed store, hash-verified

70 }
71
72 addSubtest(name, status, message) {
73 const subtest = {
74 status,
75 // https://github.com/web-platform-tests/wpt/blob/b24eedd/resources/testharness.js#L3722
76 name: sanitizeUnpairedSurrogates(name),
77 };
78 if (message) {
79 // https://github.com/web-platform-tests/wpt/blob/b24eedd/resources/testharness.js#L4506
80 subtest.message = sanitizeUnpairedSurrogates(message);
81 }
82 this.subtests.push(subtest);
83 return subtest;
84 }
85
86 finish(status) {
87 this.status = status ?? 'OK';

Callers 3

succeedMethod · 0.80
skipTestMethod · 0.80
failMethod · 0.80

Calls 2

pushMethod · 0.45

Tested by

no test coverage detected