Chromium Code Reviews| Index: LayoutTests/wake_lock/wakelock-defined.html |
| diff --git a/LayoutTests/wake_lock/wakelock-defined.html b/LayoutTests/wake_lock/wakelock-defined.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..475f9497f8e0ca81d491e2919901e8bb6631cd35 |
| --- /dev/null |
| +++ b/LayoutTests/wake_lock/wakelock-defined.html |
| @@ -0,0 +1,17 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +<script src="../resources/js-test.js"></script> |
|
mlamouri (slow - plz ping)
2015/04/28 08:00:25
Could you use testharness.js?
|
| +<script> |
| +description("Test basic WakeLock API definitions."); |
| + |
| +shouldBeTrue("internals.runtimeFlags.wakeLockEnabled"); |
| +shouldBeDefined("document.keepScreenAwake"); |
| +shouldBeTrue("typeof document.keepScreenAwake == 'boolean'"); |
| +shouldBeTrue("'keepScreenAwake' in document"); |
|
mlamouri (slow - plz ping)
2015/04/28 08:00:25
Isn't all of that already tested in wakelock-api.h
|
| + |
| +finishJSTest() |
| + |
| +</script> |
| +</body> |
| +</html> |