зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1717581 [wpt PR 29452] - Add test for 'screen-wake-lock' permission, a=testonly
Automatic update from web-platform-tests Add testfor 'screen-wake-lock' permission (#29452) -- wpt-commits: ab708206a42694dbc72fdca61fe36129ef108fb2 wpt-pr: 29452
This commit is contained in:
Родитель
399e84ff82
Коммит
b2819918d4
|
@ -0,0 +1,15 @@
|
||||||
|
<!doctype html>
|
||||||
|
<meta charset=utf-8>
|
||||||
|
<title>Test "screen-wake-lock" Permission.</title>
|
||||||
|
<script src=/resources/testharness.js></script>
|
||||||
|
<script src=/resources/testharnessreport.js></script>
|
||||||
|
<div id="log"></div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
promise_test(async () => {
|
||||||
|
const result = await navigator.permissions.query({
|
||||||
|
name: "screen-wake-lock",
|
||||||
|
});
|
||||||
|
assert_true(result instanceof PermissionStatus);
|
||||||
|
});
|
||||||
|
</script>
|
Загрузка…
Ссылка в новой задаче