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

Side by Side Diff: third_party/WebKit/LayoutTests/device_orientation/orientation/optional-event-properties.html

Issue 2677603003: Move DeviceMotion and DeviceOrientation out from fast/dom/. (Closed)
Patch Set: device_orientation Created 3 years, 10 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 <!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 the optional properties of DeviceOrientationEvent. Each prope rty should be null if not set, or set to null or undefined.'); 6 description('Tests the optional properties of DeviceOrientationEvent. Each prope rty should be null if not set, or set to null or undefined.');
7 7
8 var event; 8 var event;
9 9
10 evalAndLog("event = document.createEvent('DeviceOrientationEvent')"); 10 evalAndLog("event = document.createEvent('DeviceOrientationEvent')");
11 shouldBeTrue("event.alpha == null"); 11 shouldBeTrue("event.alpha == null");
12 shouldBeTrue("event.beta == null"); 12 shouldBeTrue("event.beta == null");
13 shouldBeTrue("event.gamma == null"); 13 shouldBeTrue("event.gamma == null");
14 shouldBeFalse("event.absolute"); 14 shouldBeFalse("event.absolute");
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 shouldBeFalse("event.absolute"); 50 shouldBeFalse("event.absolute");
51 51
52 evalAndLog("event.initDeviceOrientationEvent('', false, false, null, null, null, null)"); 52 evalAndLog("event.initDeviceOrientationEvent('', false, false, null, null, null, null)");
53 shouldBeTrue("event.alpha == null"); 53 shouldBeTrue("event.alpha == null");
54 shouldBeTrue("event.beta == null"); 54 shouldBeTrue("event.beta == null");
55 shouldBeTrue("event.gamma == null"); 55 shouldBeTrue("event.gamma == null");
56 shouldBeFalse("event.absolute"); 56 shouldBeFalse("event.absolute");
57 </script> 57 </script>
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698