summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/ua-client-hints/idlharness.https.any.js
blob: 13a9225b47f72043915a8cbca5a84b1a42375c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

'use strict';

// https://wicg.github.io/ua-client-hints/

idl_test(
  ['ua-client-hints'],
  ['html', 'dom'],
  idl_array => {
    if (self.GLOBAL.isWorker()) {
      idl_array.add_objects({ WorkerNavigator: ['navigator'] });
    } else {
      idl_array.add_objects({ Navigator: ['navigator'] });
    }
    idl_array.add_objects({
      NavigatorUAData: ['navigator.userAgentData'],
    });
  }
);