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

Side by Side Diff: third_party/WebKit/LayoutTests/device_orientation/orientation/null-values.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 using null values for some of the event properties.'); 6 description('Tests using null values for some of the event properties.');
7 7
8 var mockEvent; 8 var mockEvent;
9 function setMockOrientation(alpha, beta, gamma, absolute) { 9 function setMockOrientation(alpha, beta, gamma, absolute) {
10 mockEvent = {alpha: alpha, beta: beta, gamma: gamma, absolute: absolute}; 10 mockEvent = {alpha: alpha, beta: beta, gamma: gamma, absolute: absolute};
11 if (window.testRunner) 11 if (window.testRunner)
12 testRunner.setMockDeviceOrientation( 12 testRunner.setMockDeviceOrientation(
13 null != mockEvent.alpha, null == mockEvent.alpha ? 0 : mockEvent.alp ha, 13 null != mockEvent.alpha, null == mockEvent.alpha ? 0 : mockEvent.alp ha,
14 null != mockEvent.beta, null == mockEvent.beta ? 0 : mockEvent.beta, 14 null != mockEvent.beta, null == mockEvent.beta ? 0 : mockEvent.beta,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 finishJSTest(); 65 finishJSTest();
66 } 66 }
67 67
68 setMockOrientation(null, null, null, false); 68 setMockOrientation(null, null, null, false);
69 window.addEventListener('deviceorientation', firstListener); 69 window.addEventListener('deviceorientation', firstListener);
70 70
71 window.jsTestIsAsync = true; 71 window.jsTestIsAsync = true;
72 </script> 72 </script>
73 </body> 73 </body>
74 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698