mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
15 lines
352 B
JavaScript
15 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);
|
|
}
|
|
|