mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
14 lines
352 B
JavaScript
14 lines
352 B
JavaScript
'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);
|
|
}
|
|
|