| Index: LayoutTests/wake_lock/wakelock-api.html
|
| diff --git a/LayoutTests/wake_lock/wakelock-api.html b/LayoutTests/wake_lock/wakelock-api.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5a92d51627d4af1767cfb231c4399ba205862339
|
| --- /dev/null
|
| +++ b/LayoutTests/wake_lock/wakelock-api.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| +
|
| +test(function() {
|
| + assert_idl_attribute(document, 'keepScreenAwake');
|
| + assert_equals(typeof document.keepScreenAwake, 'boolean');
|
| +}, 'Test that the WakeLock API is present.');
|
| +
|
| +test(function() {
|
| + document.keepScreenAwake = true;
|
| + assert_true(document.keepScreenAwake);
|
| +
|
| + document.keepScreenAwake = false;
|
| + assert_false(document.keepScreenAwake);
|
| +}, 'Test that document.keepScreenAwake preserves set value');
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|