Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / device-orientation-success.html
blobc6f58c54ce5b5091e9815f7c0364f075e9d5d297
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 var mockAlpha = 1.1;
7 var mockBeta = 2.2;
8 var mockGamma = 3.3;
9 var absolute = true;
11 if (!window.testRunner)
12 debug("This test requires testRunner");
14 function setup()
16 if (window.testRunner)
17 testRunner.setMockDeviceOrientation(true, mockAlpha, true, mockBeta, true, mockGamma, true, absolute);
18 window.addEventListener("deviceorientation", handler, false);
21 function handler(evt)
23 console.log("alpha: " + evt.alpha + " beta: " + evt.beta + " gamma: " + evt.gamma);
26 function test()
28 InspectorTest.runTestSuite([
29 function setUp(next)
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);
44 ]);
46 </script>
47 </head>
48 <body onload="runTest()">
49 <p>
50 </p>
51 </body>
52 </html>