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

Side by Side Diff: third_party/WebKit/LayoutTests/device_orientation/motion/add-listener-from-callback.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 that adding a new devicemotion event listener from a callback works as expected.'); 6 description('Tests that adding a new devicemotion event listener from a callback works as expected.');
7 7
8 var mockAccelerationX = 1.1; 8 var mockAccelerationX = 1.1;
9 var mockAccelerationY = 2.1; 9 var mockAccelerationY = 2.1;
10 var mockAccelerationZ = 3.1; 10 var mockAccelerationZ = 3.1;
11 11
12 var mockAccelerationIncludingGravityX = 1.2; 12 var mockAccelerationIncludingGravityX = 1.2;
13 var mockAccelerationIncludingGravityY = 2.2; 13 var mockAccelerationIncludingGravityY = 2.2;
14 var mockAccelerationIncludingGravityZ = 3.2; 14 var mockAccelerationIncludingGravityZ = 3.2;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 function listener(event) { 49 function listener(event) {
50 checkMotion(event); 50 checkMotion(event);
51 finishJSTest(); 51 finishJSTest();
52 } 52 }
53 53
54 window.addEventListener('devicemotion', listener); 54 window.addEventListener('devicemotion', listener);
55 window.jsTestIsAsync = true; 55 window.jsTestIsAsync = true;
56 </script> 56 </script>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698