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

Side by Side Diff: third_party/WebKit/LayoutTests/device_orientation/motion/multiple-event-listeners.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 6
7 description('Tests using multiple event handlers for the Device Motion API.'); 7 description('Tests using multiple event handlers for the Device Motion API.');
8 8
9 var mockEvent; 9 var mockEvent;
10 var expectedEvent; 10 var expectedEvent;
11 function setMockMotion(accelerationX, accelerationY, accelerationZ, 11 function setMockMotion(accelerationX, accelerationY, accelerationZ,
12 accelerationIncludingGravityX, accelerationIncludingGravi tyY, accelerationIncludingGravityZ, 12 accelerationIncludingGravityX, accelerationIncludingGravi tyY, accelerationIncludingGravityZ,
13 rotationRateAlpha, rotationRateBeta, rotationRateGamma, 13 rotationRateAlpha, rotationRateBeta, rotationRateGamma,
14 interval) { 14 interval) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 0); 103 0);
104 expectedEvent = mockEvent; 104 expectedEvent = mockEvent;
105 window.addEventListener('devicemotion', firstListener); 105 window.addEventListener('devicemotion', firstListener);
106 window.addEventListener('devicemotion', secondListener); 106 window.addEventListener('devicemotion', secondListener);
107 107
108 window.jsTestIsAsync = true; 108 window.jsTestIsAsync = true;
109 109
110 </script> 110 </script>
111 </body> 111 </body>
112 </html> 112 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698