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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/screen-orientation-override.html

Issue 2663953002: DevTools: suppress protocol errors for tests unless debugTest (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698