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

Function shouldRunSubTest

test/fixtures/wpt/common/subset-tests.js:39–41  ·  view source on GitHub ↗

* Check if `currentSubTest` is in the subset specified in the URL. * @param {number} currentSubTest * @returns {boolean}

(currentSubTest)

Source from the content-addressed store, hash-verified

37 * @returns {boolean}
38 */
39 function shouldRunSubTest(currentSubTest) {
40 return currentSubTest >= subTestStart && currentSubTest <= subTestEnd;
41 }
42 var currentSubTest = 0;
43 /**
44 * Only test a subset of tests with, e.g., `?1-10` in the URL.

Callers 2

subsetTestFunction · 0.70
idlharness.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected