Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webhid/idlharness.https.any.html - WPT Dashboard Interop Dashboard
- /webhid/idlharness.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
idl_test(
['webhid'],
['html', 'dom'],
idl_array => {
if (self.GLOBAL.isWindow()) {
idl_array.add_objects({ Navigator: ['navigator'] });
} else if (self.GLOBAL.isWorker()) {
idl_array.add_objects({ WorkerNavigator: ['navigator'] });
}
idl_array.add_objects({
HID: ['navigator.hid'],
// TODO: HIDConnectionEvent
// TODO: HIDInputReportEvent
// TODO: HIDDevice
});
}
);