forked from mirrors/gecko-dev
Automatic update from web-platform-testsRewrite secure-contexts/idlharness.any.js to use idl_test (#12386) Fixes https://github.com/web-platform-tests/wpt/issues/12378, by adding the right depencies and the right global object depending on context. -- wpt-commits: d125b8f074d63d145f2b2f52262283add46bbc04 wpt-pr: 12386
19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
// META: global=window,worker
|
|
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
// https://w3c.github.io/webappsec-secure-contexts/
|
|
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['secure-contexts'],
|
|
['html', 'dom'],
|
|
idl_array => {
|
|
if (self.Window) {
|
|
idl_array.add_objects({ Window: ['self'] });
|
|
} else {
|
|
idl_array.add_objects({ WorkerGlobalScope: ['self'] });
|
|
}
|
|
}
|
|
);
|