[iOS] Suspend and resume device motion and device orientation updates when page is...
[WebKit-https.git] / ManualTests / ios / suspend-orientation-and-motion-events-when-page-becomes-hidden.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/suspend-orientation-and-motion-events-when-page-becomes-hidden.js"></script>
5 </head>
6 <body>
7 <p>This test can be used to verify that <code>devicemotion</code> and <code>deviceorientation</code> events are not dispatched when the page is hidden.</p>
8 <button onclick="window.open('suspend-orientation-and-motion-events-when-page-becomes-hidden.html')">Open this page in a child window to verify that this page does not receive events when the child window is the front-most window</button>
9 <pre id="console"></pre>
10 </body>
11 </html>