зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1474528 [wpt PR 11879] - Use NotSupportedError instead of WakeLockTypeNotSupported, a=testonly
Automatic update from web-platform-testsUse NotSupportedError instead of WakeLockTypeNotSupported (#11879) -- wpt-commits: d423033c8bc00a812698819d6fc22eb96c210d00 wpt-pr: 11879
This commit is contained in:
Родитель
79d74a3026
Коммит
ab16b4c964
|
@ -621565,7 +621565,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"wake-lock/wakelock-type.https.html": [
|
||||
"583647213b49b7bc67cad08192db3e6abcd1de9f",
|
||||
"db9c24356c4b8b3b963afcca0a2cf72ea568ec58",
|
||||
"testharness"
|
||||
],
|
||||
"wake-lock/wakelockrequest-is-independent.https.html": [
|
||||
|
|
|
@ -18,11 +18,11 @@ promise_test(async t => {
|
|||
}, "Test that wakeLock.type is 'system' when system wake lock is invoked");
|
||||
|
||||
promise_test(t => {
|
||||
return promise_rejects(t, new DOMException("", "WakeLockTypeNotSupported"), navigator.getWakeLock());
|
||||
}, "'WakeLockTypeNotSupported' is thrown when set an empty wake lock type");
|
||||
return promise_rejects(t, new DOMException("", "NotSupportedError"), navigator.getWakeLock());
|
||||
}, "'NotSupportedError' is thrown when set an empty wake lock type");
|
||||
|
||||
promise_test(t => {
|
||||
return promise_rejects(t, new DOMException("", "WakeLockTypeNotSupported"), navigator.getWakeLock("unsupported"));
|
||||
}, "'WakeLockTypeNotSupported' is thrown when set an unsupported wake lock type");
|
||||
return promise_rejects(t, new DOMException("", "NotSupportedError"), navigator.getWakeLock("unsupported"));
|
||||
}, "'NotSupportedError' is thrown when set an unsupported wake lock type");
|
||||
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче