mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests Update WPT tests for Managed Configuration API To ensure that tests pass on other platforms, we remove testharness.js and testharnessreport.js . Bug: 1141849 Change-Id: I5815821dc4bcc3fb353f9811842b8f875a336c62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2815304 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Anatoliy Potapchuk <[email protected]> Cr-Commit-Position: refs/heads/master@{#870706} -- wpt-commits: 04413e5f8f77115f6e86cc2978075deebc28b078 wpt-pr: 28420
15 lines
443 B
JavaScript
15 lines
443 B
JavaScript
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');
|