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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event.html

Issue 2216593002: Drop document.createEvent support for things still behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@createEvent
Patch Set: fix LayoutTests Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event.html b/third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event.html
index c8f934f3396a9d274130253a4779870d7c51e179..55c6cc8d8ed25a47ec3833b89f7669d5a2df6734 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event.html
@@ -3,9 +3,8 @@
<body>
<script src="../../../resources/js-test.js"></script>
<script>
-description("Tests that document.createEvent() works with DeviceLightEvent.");
+description("Tests the DeviceLightEvent constructor.");
-var event = document.createEvent('DeviceLightEvent');
var newEvent = new DeviceLightEvent("devicelight", {
bubbles: true, cancelable: false,
value: 10
@@ -13,15 +12,6 @@ var newEvent = new DeviceLightEvent("devicelight", {
var defaultEvent = new DeviceLightEvent("devicelight");
-shouldBeTrue("typeof event == 'object'");
-shouldBe("event.__proto__", "DeviceLightEvent.prototype");
-
-shouldBeTrue("event instanceof window.DeviceLightEvent");
-shouldBeTrue("'type' in event");
-shouldBeTrue("'bubbles' in event");
-shouldBeTrue("'cancelable' in event");
-shouldBeTrue("'value' in event");
-
shouldBeTrue("typeof newEvent.type == 'string'");
shouldBeEqualToString("newEvent.type", "devicelight");
shouldBeTrue("typeof newEvent.bubbles == 'boolean'");
@@ -34,6 +24,7 @@ shouldBeEqualToNumber('newEvent.value', 10);
// FIXME: Consider making bubbles property configurable.
shouldBeTrue("defaultEvent.bubbles");
shouldBeFalse("defaultEvent.cancelable");
+shouldBe("defaultEvent.value", "Infinity");
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/DeviceLight/create-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698