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

Unified Diff: third_party/WebKit/LayoutTests/ambient-light/create-event.html

Issue 2823753002: Remove device light API
Patch Set: Restore DeviceLightEvent to LayoutTests/external/wpt/dom/nodes/Document-createEvent.html Created 3 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: third_party/WebKit/LayoutTests/ambient-light/create-event.html
diff --git a/third_party/WebKit/LayoutTests/ambient-light/create-event.html b/third_party/WebKit/LayoutTests/ambient-light/create-event.html
deleted file mode 100644
index ecefce5186dd8ededc6cd39198acad531267c159..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/ambient-light/create-event.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../resources/js-test.js"></script>
-<script>
-description("Tests the DeviceLightEvent constructor.");
-
-var newEvent = new DeviceLightEvent("devicelight", {
- bubbles: true, cancelable: false,
- value: 10
-});
-
-var defaultEvent = new DeviceLightEvent("devicelight");
-
-shouldBeTrue("typeof newEvent.type == 'string'");
-shouldBeEqualToString("newEvent.type", "devicelight");
-shouldBeTrue("typeof newEvent.bubbles == 'boolean'");
-shouldBeTrue("newEvent.bubbles");
-shouldBeTrue("typeof newEvent.cancelable == 'boolean'");
-shouldBeFalse("newEvent.cancelable")
-shouldBeTrue("typeof newEvent.value == 'number'");
-shouldBeEqualToNumber('newEvent.value', 10);
-
-// FIXME: Consider making bubbles property configurable.
-shouldBeTrue("defaultEvent.bubbles");
-shouldBeFalse("defaultEvent.cancelable");
-shouldBe("defaultEvent.value", "Infinity");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698