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

Side by Side Diff: LayoutTests/fast/dom/DeviceLight/create-event.html

Issue 775763007: Use event init dictionary in modules/device_light (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 description("Tests that document.createEvent() works with DeviceLightEvent."); 6 description("Tests that document.createEvent() works with DeviceLightEvent.");
7 7
8 var event = document.createEvent('DeviceLightEvent'); 8 var event = document.createEvent('DeviceLightEvent');
9 var newEvent = new DeviceLightEvent("devicelight", { 9 var newEvent = new DeviceLightEvent("devicelight", {
10 bubbles: true, cancelable: false, 10 bubbles: true, cancelable: false,
(...skipping 13 matching lines...) Expand all
24 24
25 shouldBeTrue("typeof newEvent.type == 'string'"); 25 shouldBeTrue("typeof newEvent.type == 'string'");
26 shouldBeEqualToString("newEvent.type", "devicelight"); 26 shouldBeEqualToString("newEvent.type", "devicelight");
27 shouldBeTrue("typeof newEvent.bubbles == 'boolean'"); 27 shouldBeTrue("typeof newEvent.bubbles == 'boolean'");
28 shouldBeTrue("newEvent.bubbles"); 28 shouldBeTrue("newEvent.bubbles");
29 shouldBeTrue("typeof newEvent.cancelable == 'boolean'"); 29 shouldBeTrue("typeof newEvent.cancelable == 'boolean'");
30 shouldBeFalse("newEvent.cancelable") 30 shouldBeFalse("newEvent.cancelable")
31 shouldBeTrue("typeof newEvent.value == 'number'"); 31 shouldBeTrue("typeof newEvent.value == 'number'");
32 shouldBeEqualToNumber('newEvent.value', 10); 32 shouldBeEqualToNumber('newEvent.value', 10);
33 33
34 // FIXME: Maybe bubbles should be configurable.
timvolodine 2014/12/11 18:38:46 fixme looks very vague: either remove or add somet
bashi 2014/12/11 23:56:16 Done.
34 shouldBeTrue("defaultEvent.bubbles"); 35 shouldBeTrue("defaultEvent.bubbles");
35 shouldBeFalse("defaultEvent.cancelable"); 36 shouldBeFalse("defaultEvent.cancelable");
36 </script> 37 </script>
37 </body> 38 </body>
38 </html> 39 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/events/Event.h » ('j') | Source/modules/device_light/DeviceLightEvent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698