Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/device-orientation-success.html

Issue 1737443002: Make DeviceOrientationEvent.prototype.absolute non-nullable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script> 3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 5
6 var mockAlpha = 1.1; 6 var mockAlpha = 1.1;
7 var mockBeta = 2.2; 7 var mockBeta = 2.2;
8 var mockGamma = 3.3; 8 var mockGamma = 3.3;
9 var absolute = true; 9 var absolute = true;
10 10
11 if (!window.testRunner) 11 if (!window.testRunner)
12 debug("This test requires testRunner"); 12 debug("This test requires testRunner");
13 13
14 function setup() 14 function setup()
15 { 15 {
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.setMockDeviceOrientation(true, mockAlpha, true, mockBeta, tru e, mockGamma, true, absolute); 17 testRunner.setMockDeviceOrientation(true, mockAlpha, true, mockBeta, tru e, mockGamma, absolute);
18 window.addEventListener("deviceorientation", handler, false); 18 window.addEventListener("deviceorientation", handler, false);
19 } 19 }
20 20
21 function handler(evt) 21 function handler(evt)
22 { 22 {
23 console.log("alpha: " + evt.alpha + " beta: " + evt.beta + " gamma: " + evt. gamma); 23 console.log("alpha: " + evt.alpha + " beta: " + evt.beta + " gamma: " + evt. gamma);
24 } 24 }
25 25
26 function test() 26 function test()
27 { 27 {
(...skipping 15 matching lines...) Expand all
43 } 43 }
44 ]); 44 ]);
45 } 45 }
46 </script> 46 </script>
47 </head> 47 </head>
48 <body onload="runTest()"> 48 <body onload="runTest()">
49 <p> 49 <p>
50 </p> 50 </p>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698