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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api.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.sendCommand("Runtime.evaluate", { expression: "let a = 42;" }, step2); 8 InspectorTest.sendCommand("Runtime.evaluate", { expression: "let a = 42;" }, step2);
9 9
10 function step2(response) 10 function step2(response)
11 { 11 {
12 failIfError(response); 12 failIfError(response);
13 InspectorTest.log("first \"let a = 1;\" result: wasThrown = " + !!respon se.result.exceptionDetails); 13 InspectorTest.log("first \"let a = 1;\" result: wasThrown = " + !!respon se.result.exceptionDetails);
14 InspectorTest.sendCommand("Runtime.evaluate", { expression: "let a = 239 ;" }, step3); 14 InspectorTest.sendCommand("Runtime.evaluate", { expression: "let a = 239 ;" }, step3);
15 } 15 }
16 16
17 function step3(response) 17 function step3(response)
18 { 18 {
19 failIfError(response); 19 failIfError(response);
20 InspectorTest.log("second \"let a = 1;\" result: wasThrown = " + !!respo nse.result.exceptionDetails); 20 InspectorTest.log("second \"let a = 1;\" result: wasThrown = " + !!respo nse.result.exceptionDetails);
21 if (response.result.exceptionDetails) 21 if (response.result.exceptionDetails)
22 InspectorTest.log("exception message: " + response.result.exceptionD etails.text); 22 InspectorTest.log("exception message: " + response.result.exceptionD etails.text + " " + response.result.exceptionDetails.exception.description);
23 InspectorTest.sendCommand("Runtime.evaluate", { expression: "a" }, step4 ); 23 InspectorTest.sendCommand("Runtime.evaluate", { expression: "a" }, step4 );
24 } 24 }
25 25
26 function step4(response) 26 function step4(response)
27 { 27 {
28 failIfError(response); 28 failIfError(response);
29 InspectorTest.log(JSON.stringify(response.result)); 29 InspectorTest.log(JSON.stringify(response.result));
30 checkMethod(null); 30 checkMethod(null);
31 } 31 }
32 32
(...skipping 21 matching lines...) Expand all
54 InspectorTest.log("FAIL: " + JSON.stringify(response.error)); 54 InspectorTest.log("FAIL: " + JSON.stringify(response.error));
55 } 55 }
56 } 56 }
57 } 57 }
58 58
59 </script> 59 </script>
60 </head> 60 </head>
61 <body onload="runTest()"> 61 <body onload="runTest()">
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698