Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/idlharness.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /dom/idlharness.any.shadowrealm-in-window.html - WPT Dashboard Interop Dashboard
- /dom/idlharness.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /dom/idlharness.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=worker,shadowrealm-in-window
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
// Note: This test doesn't cover the Window context, see idlharness.window.js
// for that coverage and why it can't be merged into this test.
'use strict';
idl_test(
['dom'],
['html'],
idl_array => {
idl_array.add_objects({
EventTarget: ['new EventTarget()'],
Event: ['new Event("foo")'],
CustomEvent: ['new CustomEvent("foo")'],
AbortController: ['new AbortController()'],
AbortSignal: ['new AbortController().signal'],
});
}
);
done();