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

Unified Diff: LayoutTests/fast/dom/DeviceLight/window-property.html

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase after r172920 Created 6 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/fast/dom/DeviceLight/window-property.html
diff --git a/LayoutTests/fast/dom/DeviceLight/window-property.html b/LayoutTests/fast/dom/DeviceLight/window-property.html
new file mode 100644
index 0000000000000000000000000000000000000000..4b42fb0c911184b08f429e24de2968691cf95398
--- /dev/null
+++ b/LayoutTests/fast/dom/DeviceLight/window-property.html
@@ -0,0 +1,17 @@
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description("Tests that the window.DeviceLightEvent and window.ondevicelight properties are present.");
+
+shouldBeTrue("'DeviceLightEvent' in window");
+shouldBeTrue("window.hasOwnProperty('DeviceLightEvent')");
+
+shouldBeTrue("typeof window.ondevicelight == 'object'");
+shouldBeTrue("'ondevicelight' in window");
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698