3 <title>DeviceOrientation all-null event test with alert</title>
4 <script type="text/javascript">
5 function checkOrientationEvent(event) {
6 return event.alpha == null &&
11 function onOrientation(event) {
12 window.removeEventListener('deviceorientation', onOrientation);
13 checkOrientationEvent(event) ? pass() : fail();
17 document.getElementById('status').innerHTML = 'PASS';
18 document.location = '#pass';
22 document.location = '#fail';
25 window.addEventListener('deviceorientation', onOrientation);
26 alert("suspend active DOM objects");
30 <div id="status">FAIL</div>