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

Side by Side Diff: third_party/WebKit/LayoutTests/device_orientation/orientation/no-synchronous-events.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 events are never fired synchronously from a call to wind ow.addEventListener().'); 6 description('Tests that events are never fired synchronously from a call to wind ow.addEventListener().');
7 7
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3, true); 9 testRunner.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3, true);
10 else 10 else
11 debug('This test can not be run without the TestRunner'); 11 debug('This test can not be run without the TestRunner');
12 12
13 var hasAddEventListenerReturned = false; 13 var hasAddEventListenerReturned = false;
14 window.addEventListener('deviceorientation', function() { 14 window.addEventListener('deviceorientation', function() {
15 shouldBeTrue('hasAddEventListenerReturned'); 15 shouldBeTrue('hasAddEventListenerReturned');
16 finishJSTest(); 16 finishJSTest();
17 }); 17 });
18 hasAddEventListenerReturned = true; 18 hasAddEventListenerReturned = true;
19 19
20 window.jsTestIsAsync = true; 20 window.jsTestIsAsync = true;
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698