mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-17 18:03:06 +09: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);
|
|
}
|
|
|