Chromium Code Reviews| Index: LayoutTests/fast/dom/DeviceLight/script-tests/create-event.js |
| diff --git a/LayoutTests/fast/dom/DeviceLight/script-tests/create-event.js b/LayoutTests/fast/dom/DeviceLight/script-tests/create-event.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2b1d7a40bd253ba18f0bbc639a2780fab903081d |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/DeviceLight/script-tests/create-event.js |
| @@ -0,0 +1,15 @@ |
| +description("Tests that document.createEvent() works with DeviceLightEvent."); |
| + |
| +var event = document.createEvent('DeviceLightEvent'); |
| + |
| +shouldBeTrue("typeof event == 'object'"); |
| + |
| +shouldBeTrue("'type' in event"); |
| +shouldBeTrue("'bubbles' in event"); |
| +shouldBeTrue("'cancelable' in event"); |
| +shouldBeTrue("'value' in event"); |
| + |
| +shouldBeTrue("typeof event.type == 'string'"); |
| +shouldBeTrue("typeof event.bubbles == 'boolean'"); |
| +shouldBeTrue("typeof event.cancelable == 'boolean'"); |
| +shouldBeTrue("typeof event.value == 'number'"); |
|
abarth-chromium
2014/03/21 13:04:13
This code should be inlined into the test that use
riju_
2014/04/03 17:52:53
Done.
|