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

Side by Side Diff: LayoutTests/fast/dom/DeviceLight/script-tests/create-event.js

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase after r169270 Created 6 years, 9 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 description("Tests that document.createEvent() works with DeviceLightEvent.");
2
3 var event = document.createEvent('DeviceLightEvent');
4
5 shouldBeTrue("typeof event == 'object'");
6
7 shouldBeTrue("'type' in event");
8 shouldBeTrue("'bubbles' in event");
9 shouldBeTrue("'cancelable' in event");
10 shouldBeTrue("'value' in event");
11
12 shouldBeTrue("typeof event.type == 'string'");
13 shouldBeTrue("typeof event.bubbles == 'boolean'");
14 shouldBeTrue("typeof event.cancelable == 'boolean'");
15 shouldBeTrue("typeof event.value == 'number'");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698