Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 35 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /serial/idlharness.https.any.html - WPT Dashboard Interop Dashboard
- /serial/idlharness.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
idl_test(
['serial'],
['html', 'dom'],
idl_array => {
idl_array.add_objects({
Serial: ['navigator.serial'],
// TODO: SerialPort
// TODO: SerialPortInfo
});
if (self.GLOBAL.isWorker()) {
idl_array.add_objects({ WorkerNavigator: ['navigator'] });
} else {
idl_array.add_objects({ Navigator: ['navigator'] });
}
}
);