summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/device-memory/idlharness.https.any.js
blob: 71973394655bddfcfb5596e062992cb503877ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long

// https://w3c.github.io/device-memory/

"use strict";

idl_test(
  ['device-memory'],
  ['html'],
  async idl_array => {
    if (self.GLOBAL.isWorker()) {
      idl_array.add_objects({ WorkerNavigator: ['navigator'] });
    } else {
      idl_array.add_objects({ Navigator: ['navigator'] });
    }
  }
);