| 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>
|
|
|