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

Method resultCallback

test/common/wpt.js:880–887  ·  view source on GitHub ↗

* Report the status of each specific test case (there could be multiple * in one test file). * @param {WPTTestSpec} spec * @param {Test} test The Test object returned by WPT harness * @param {ReportResult} reportResult The report result object

(spec, test, reportResult)

Source from the content-addressed store, hash-verified

878 * @param {ReportResult} reportResult The report result object
879 */
880 resultCallback(spec, test, reportResult) {
881 const status = this.getTestStatus(test.status);
882 if (status !== kPass) {
883 this.fail(spec, test, status, reportResult);
884 } else {
885 this.succeed(spec, test, status, reportResult);
886 }
887 }
888
889 /**
890 * Report the status of each WPT test (one per file)

Callers 1

runJsTestsMethod · 0.95

Calls 3

getTestStatusMethod · 0.95
failMethod · 0.95
succeedMethod · 0.95

Tested by

no test coverage detected