aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/secure-contexts/idlharness.any.js
blob: 5bd1d44d6f7d9c299ff41c241802652924ce77b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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'] });
    }
  }
);