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:
Marcos Cáceres 2018-07-18 14:38:59 +00:00 коммит произвёл moz-wptsync-bot
Родитель 79d74a3026
Коммит ab16b4c964
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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>