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

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

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Initialize m_lastDeviceLightData to -1 Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 description("Tests that document.createEvent() works with DeviceLightEvent.");
8
9 var event = document.createEvent('DeviceLightEvent');
10
11 shouldBeTrue("typeof event == 'object'");
12
13 shouldBeTrue("'type' in event");
14 shouldBeTrue("'bubbles' in event");
15 shouldBeTrue("'cancelable' in event");
16 shouldBeTrue("'value' in event");
17
18 shouldBeTrue("typeof event.type == 'string'");
19 shouldBeTrue("typeof event.bubbles == 'boolean'");
20 shouldBeTrue("typeof event.cancelable == 'boolean'");
21 shouldBeTrue("typeof event.value == 'number'");
22 </script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698