Revision 38cb63e5ec8e6a14fb1094dee946800f5ea35bee authored by Josh Matthews on 01 August 2018, 18:31:04 UTC, committed by GitHub on 01 August 2018, 18:31:04 UTC
1 parent 5aac5c1
wakelockrequest-is-independent.https.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>WakeLockRequest object is independent</title>
<link rel="help" href="https://w3c.github.io/wake-lock/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
const wakeLock1 = await navigator.getWakeLock("screen");
const wakeLock2 = await navigator.getWakeLock("screen");
const request1 = wakeLock1.createRequest();
const request2 = wakeLock2.createRequest();
assert_not_equals(request1, request2);
}, "Test that the WakeLockRequest object is independent.");
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...