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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-callFunctionOn-async.html

Issue 2249743006: [DevTools] Fill ExceptionDetails with more details, unify usage across protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser test Created 4 years, 4 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 type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script> 4 <script>
5 5
6 function test() 6 function test()
7 { 7 {
8 InspectorTest.runTestSuite([ 8 InspectorTest.runTestSuite([
9 function testArguments(next) 9 function testArguments(next)
10 { 10 {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 } 129 }
130 } 130 }
131 131
132 function dumpResult(result) 132 function dumpResult(result)
133 { 133 {
134 if (result.exceptionDetails && result.exceptionDetails.scriptId) 134 if (result.exceptionDetails && result.exceptionDetails.scriptId)
135 result.exceptionDetails.scriptId = 0; 135 result.exceptionDetails.scriptId = 0;
136 if (result.result && result.result.objectId) 136 if (result.result && result.result.objectId)
137 result.result.objectId = "[ObjectId]"; 137 result.result.objectId = "[ObjectId]";
138 if (result.exceptionDetails) {
139 result.exceptionDetails.exceptionId = 0;
140 result.exceptionDetails.exception.objectId = 0;
141 }
138 InspectorTest.logObject(result); 142 InspectorTest.logObject(result);
139 } 143 }
140 } 144 }
141 </script> 145 </script>
142 </head> 146 </head>
143 <body onLoad="runTest();"> 147 <body onLoad="runTest();">
144 Tests that Runtime.callFunctionOn works with awaitPromise flag. 148 Tests that Runtime.callFunctionOn works with awaitPromise flag.
145 </body> 149 </body>
146 </html> 150 </html>
147 151
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698