3 <title>DeviceOrientation all-null event test
</title>
6 <div id=
"status">FAIL
</div>
8 <script type=
"text/javascript">
9 function checkOrientationEvent(event
) {
10 return event
.alpha
== null &&
15 function onOrientation(event
) {
16 window
.removeEventListener('deviceorientation', onOrientation
);
17 checkOrientationEvent(event
) ? pass() : fail();
21 document
.getElementById('status').innerHTML
= 'PASS';
22 document
.location
= '#pass';
26 document
.location
= '#fail';
29 window
.addEventListener('deviceorientation', onOrientation
);