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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-operation-breakpoints.html

Issue 1666563005: DevTools: merge ScriptCallStack and ScriptAsyncCallStack, move CallStacks from console to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testts Created 4 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 <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/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../debugger/resources/framework.js"></script> 5 <script src="../debugger/resources/framework.js"></script>
6 <script> 6 <script>
7 7
8 var dummy = function FAIL_should_not_pause_here() { return 0; }; 8 var dummy = function FAIL_should_not_pause_here() { return 0; };
9 9
10 function testFunction() 10 function testFunction()
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 { 85 {
86 InspectorTest.captureStackTrace(callFrames); 86 InspectorTest.captureStackTrace(callFrames);
87 InspectorTest.addResult("Pause reason: " + reason); 87 InspectorTest.addResult("Pause reason: " + reason);
88 iterate(); 88 iterate();
89 } 89 }
90 } 90 }
91 91
92 function onAsyncOperationStarted(event) 92 function onAsyncOperationStarted(event)
93 { 93 {
94 var operation = event.data; 94 var operation = event.data;
95 var callFrames = operation.stackTrace || []; 95 var callFrames = operation.stack ? operation.stack.callFrames : [];
96 for (var callFrame of callFrames) { 96 for (var callFrame of callFrames) {
97 var functionName = callFrame && callFrame.functionName; 97 var functionName = callFrame && callFrame.functionName;
98 if (functionName === "setAsyncBreakpointForMe") { 98 if (functionName === "setAsyncBreakpointForMe") {
99 InspectorTest.DebuggerAgent.setAsyncOperationBreakpoint(operatio n.id); 99 InspectorTest.DebuggerAgent.setAsyncOperationBreakpoint(operatio n.id);
100 break; 100 break;
101 } 101 }
102 } 102 }
103 } 103 }
104 } 104 }
105 105
106 </script> 106 </script>
107 </head> 107 </head>
108 108
109 <body onload="runTest()"> 109 <body onload="runTest()">
110 <p> 110 <p>
111 Tests AsyncOperation breakpoints. 111 Tests AsyncOperation breakpoints.
112 </p> 112 </p>
113 </body> 113 </body>
114 </html> 114 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698