Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /media-capabilities/idlharness.any.html - WPT Dashboard Interop Dashboard
- /media-capabilities/idlharness.any.worker.html - WPT Dashboard Interop Dashboard
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
promise_test(async () => {
idl_test(
['media-capabilities'],
['html', 'cssom-view'],
idl_array => {
if (self.GLOBAL.isWorker()) {
idl_array.add_objects({ WorkerNavigator: ['navigator'] });
} else {
idl_array.add_objects({ Navigator: ['navigator'] });
}
idl_array.add_objects({
MediaCapabilities: ['navigator.mediaCapabilities'],
Screen: ['screen'],
ScreenLuminance: ['screen.luminance'],
});
}
);
});