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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../http/tests/inspector/inspector-test.js"></script> 4 <script src="../http/tests/inspector/inspector-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 Protocol.InspectorBackend.Options.suppressRequestErrors = false;
8 function dumpArgument(name, value) 9 function dumpArgument(name, value)
9 { 10 {
10 InspectorTest.addResult(name + " result: " + (typeof value === "string" ? value : JSON.stringify(value))); 11 InspectorTest.addResult(name + " result: " + (typeof value === "string" ? value : JSON.stringify(value)));
11 } 12 }
12 13
13 function processResult(name, promise) 14 function processResult(name, promise)
14 { 15 {
15 return promise.then(dumpArgument.bind(null, name + ": then"), dumpArgume nt.bind(null, name + ": catch")); 16 return promise.then(dumpArgument.bind(null, name + ": then"), dumpArgume nt.bind(null, name + ": catch"));
16 } 17 }
17 18
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendOrigina l; 107 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendOrigina l;
107 InspectorTest.completeTest(); 108 InspectorTest.completeTest();
108 } 109 }
109 } 110 }
110 </script> 111 </script>
111 </head> 112 </head>
112 <body onload="runTest()"> 113 <body onload="runTest()">
113 <p>Tests correctness of promisified protocol commands.</p> 114 <p>Tests correctness of promisified protocol commands.</p>
114 </body> 115 </body>
115 </html> 116 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698