| OLD | NEW |
| 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 if (window.testRunner) | 6 if (window.testRunner) |
| 7 window.testRunner.disableMockScreenOrientation(); | 7 window.testRunner.disableMockScreenOrientation(); |
| 8 | 8 |
| 9 var windowOrientationChangeEvent = false; | 9 var windowOrientationChangeEvent = false; |
| 10 var screenOrientationChangeEvent = false; | 10 var screenOrientationChangeEvent = false; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 { | 21 { |
| 22 if (windowOrientationChangeEvent && screenOrientationChangeEvent) { | 22 if (windowOrientationChangeEvent && screenOrientationChangeEvent) { |
| 23 windowOrientationChangeEvent = false; | 23 windowOrientationChangeEvent = false; |
| 24 screenOrientationChangeEvent = false; | 24 screenOrientationChangeEvent = false; |
| 25 console.log(dump()); | 25 console.log(dump()); |
| 26 } | 26 } |
| 27 } | 27 } |
| 28 | 28 |
| 29 function test() | 29 function test() |
| 30 { | 30 { |
| 31 Protocol.InspectorBackend.Options.suppressRequestErrors = false; |
| 31 function addDumpResult(next) | 32 function addDumpResult(next) |
| 32 { | 33 { |
| 33 InspectorTest.evaluateInPage("dump()", dumpCallback); | 34 InspectorTest.evaluateInPage("dump()", dumpCallback); |
| 34 | 35 |
| 35 function dumpCallback(result) | 36 function dumpCallback(result) |
| 36 { | 37 { |
| 37 InspectorTest.addResult(result.value); | 38 InspectorTest.addResult(result.value); |
| 38 next(); | 39 next(); |
| 39 } | 40 } |
| 40 } | 41 } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 } | 122 } |
| 122 ]); | 123 ]); |
| 123 } | 124 } |
| 124 </script> | 125 </script> |
| 125 </head> | 126 </head> |
| 126 <body onload="runTest()"> | 127 <body onload="runTest()"> |
| 127 <p> | 128 <p> |
| 128 </p> | 129 </p> |
| 129 </body> | 130 </body> |
| 130 </html> | 131 </html> |
| OLD | NEW |