fune/testing/web-platform/tests/secure-contexts/idlharness.any.js
Philip Jägenstedt 3b6ee74efd Bug 1482241 [wpt PR 12386] - Rewrite secure-contexts/idlharness.any.js to use idl_test, a=testonly
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
2018-08-15 16:50:20 +00:00

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'] });
}
}
);