summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/streams/resources/test-initializer.js
blob: d6ed4a7aab541e8e5cfeec4042032892430147b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

function worker_test(file) {
  fetch_tests_from_worker(new Worker(file));
  if (typeof SharedWorker === 'function') {
    fetch_tests_from_worker(new SharedWorker(file));
  } else {
    test(() => {
      assert_unreached('SharedWorker is unavailable');
    }, 'Load ' + file + ' with SharedWorker');
  }
  service_worker_test(file);
}