summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/referrer-policy/4K-1/generic/test-case.sub.js
blob: edc96053ca9df83eff59ce37aad8a0b26397bd5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function TestCase(scenarios, sanityChecker) {
  function runTest(scenario) {
    // This check is A NOOP in release.
    sanityChecker.checkScenario(scenario);

    runLengthTest(
        scenario,
        4096 - 1,
        scenario.expectation,
        scenario.test_description);
  }

  function runTests() {
    for (const scenario of scenarios) {
      runTest(scenario);
    }
  }

  return {start: runTests};
}