14 lines
280 B
JavaScript
14 lines
280 B
JavaScript
'use strict';
|
|
|
|
importScripts('/resources/testharness.js');
|
|
|
|
let workerType;
|
|
|
|
if (typeof postMessage === 'function') {
|
|
workerType = 'dedicated';
|
|
}
|
|
|
|
promise_test(() => navigator.serial.getPorts(),
|
|
`Inherited header permissions policy allows ${workerType} workers.`);
|
|
|
|
done();
|