Bug 1806468 [wpt PR 37579] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / testing / web-platform / tests / managed / managed-config-error.https.window.js
blobab58fba5df9d2d3d6d4092d959bf78c145acd4fc
1 promise_test(t => {
2   return promise_rejects_js(
3       t, TypeError, navigator.managed.getManagedConfiguration(-1));
4 }, 'Number instead of keys');
6 promise_test(t => {
7   return promise_rejects_js(
8       t, TypeError, navigator.managed.getManagedConfiguration());
9 }, 'Empty key list');
11 promise_test(t => {
12   return promise_rejects_js(
13       t, TypeError, navigator.managed.getManagedConfiguration({'a': 2}));
14 }, 'Dictionary instead of list');