Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 3 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /managed/managed-config-error.https.window.html - WPT Dashboard Interop Dashboard
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');