summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/managed/managed-config-error.https.window.js
blob: ab58fba5df9d2d3d6d4092d959bf78c145acd4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
promise_test(t => {
  return promise_rejects_js(
      t, TypeError, navigator.managed.getManagedConfiguration(-1));
}, 'Number instead of keys');

promise_test(t => {
  return promise_rejects_js(
      t, TypeError, navigator.managed.getManagedConfiguration());
}, 'Empty key list');

promise_test(t => {
  return promise_rejects_js(
      t, TypeError, navigator.managed.getManagedConfiguration({'a': 2}));
}, 'Dictionary instead of list');