Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: LayoutTests/wake_lock/wakelock-defined.html

Issue 1084923002: Wake Lock API implementation (Blink part) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698