[Streams API] Import the web-platform-tests directly from the spec
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / streams-api / resources / test-initializer.js
1 'use strict';
2
3 function worker_test(file) {
4   fetch_tests_from_worker(new Worker(file));
5   if (typeof SharedWorker === 'function') {
6     fetch_tests_from_worker(new SharedWorker(file));
7   } else {
8     test(() => {
9       assert_unreached('SharedWorker is unavailable');
10     }, 'Load ' + file + ' with SharedWorker');
11   }
12   service_worker_test(file);
13 }
14