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

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

Issue 22599005: Blink-side layout tests for the new Device Orientation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased once more Created 7 years, 2 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
1 description('Tests that document.createEvent() works with DeviceOrientationEvent .'); 1 description('Tests that document.createEvent() works with DeviceOrientationEvent .');
2 2
3 var event = document.createEvent('DeviceOrientationEvent'); 3 var event = document.createEvent('DeviceOrientationEvent');
4 4
5 shouldBeTrue("typeof event == 'object'"); 5 shouldBeTrue("typeof event == 'object'");
6 6
7 shouldBeTrue("'type' in event"); 7 shouldBeTrue("'type' in event");
8 shouldBeTrue("'bubbles' in event"); 8 shouldBeTrue("'bubbles' in event");
9 shouldBeTrue("'cancelable' in event"); 9 shouldBeTrue("'cancelable' in event");
10 shouldBeTrue("'alpha' in event"); 10 shouldBeTrue("'alpha' in event");
11 shouldBeTrue("'beta' in event"); 11 shouldBeTrue("'beta' in event");
12 shouldBeTrue("'gamma' in event"); 12 shouldBeTrue("'gamma' in event");
13 shouldBeTrue("'absolute' in event");
13 14
14 shouldBeTrue("typeof event.type == 'string'"); 15 shouldBeTrue("typeof event.type == 'string'");
15 shouldBeTrue("typeof event.bubbles == 'boolean'"); 16 shouldBeTrue("typeof event.bubbles == 'boolean'");
16 shouldBeTrue("typeof event.cancelable == 'boolean'"); 17 shouldBeTrue("typeof event.cancelable == 'boolean'");
17 shouldBeTrue("typeof event.alpha == 'object'"); 18 shouldBeTrue("typeof event.alpha == 'object'");
18 shouldBeTrue("typeof event.beta == 'object'"); 19 shouldBeTrue("typeof event.beta == 'object'");
19 shouldBeTrue("typeof event.gamma == 'object'"); 20 shouldBeTrue("typeof event.gamma == 'object'");
21 shouldBeTrue("typeof event.absolute == 'object'");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698