3 <script src=
"../http/tests/inspector/inspector-test.js"></script>
11 if (!window
.testRunner
)
12 debug("This test requires testRunner");
16 if (window
.testRunner
)
17 testRunner
.setMockDeviceOrientation(true, mockAlpha
, true, mockBeta
, true, mockGamma
, true, absolute
);
18 window
.addEventListener("deviceorientation", handler
, false);
23 console
.log("alpha: " + evt
.alpha
+ " beta: " + evt
.beta
+ " gamma: " + evt
.gamma
);
28 InspectorTest
.runTestSuite([
31 InspectorTest
.evaluateInPage("setup()", next
);
34 function setOverride(next
)
36 InspectorTest
.addConsoleSniffer(next
);
37 InspectorTest
.DeviceOrientationAgent
.setDeviceOrientationOverride(20, 30, 40);
40 function clearOverride(next
)
42 InspectorTest
.DeviceOrientationAgent
.clearDeviceOrientationOverride(next
);
48 <body onload=
"runTest()">