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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-while-paused-throws.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 src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script> 4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script> 6 <script>
7 7
8 var globalObj = { 8 var globalObj = {
9 func: function() 9 func: function()
10 { 10 {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 InspectorTest.evaluateInConsole("localObj.func()", step5); 58 InspectorTest.evaluateInConsole("localObj.func()", step5);
59 } 59 }
60 60
61 function step5() 61 function step5()
62 { 62 {
63 InspectorTest.evaluateInConsole("globalObj.func()", dumpConsoleMessages) ; 63 InspectorTest.evaluateInConsole("globalObj.func()", dumpConsoleMessages) ;
64 } 64 }
65 65
66 function dumpConsoleMessages() 66 function dumpConsoleMessages()
67 { 67 {
68 InspectorTest.addResult("Dumping console messages:\n"); 68 InspectorTest.deprecatedRunAfterPendingDispatches(() => {
69 InspectorTest.dumpConsoleMessages(false, false, formatter); 69 InspectorTest.addResult("Dumping console messages:\n");
70 InspectorTest.completeDebuggerTest(); 70 InspectorTest.dumpConsoleMessages();
71 } 71 InspectorTest.completeDebuggerTest();
72 72 });
73 function formatter(element, message) {
74 return message.messageText;
75 } 73 }
76 } 74 }
77 75
78 </script> 76 </script>
79 </head> 77 </head>
80 78
81 <body onload="runTest()"> 79 <body onload="runTest()">
82 <p> 80 <p>
83 Tests that evaluation in console that throws works fine when script is paused. 81 Tests that evaluation in console that throws works fine when script is paused.
84 </p> 82 </p>
85 </body> 83 </body>
86 </html> 84 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698