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

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

Issue 943963002: DevTools: Refactor nits in DebuggerModel event dispatching. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/async-operation-events.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 5 <script>
6 6
7 var dummy = function FAIL_should_not_pause_here() { return 0; }; 7 var dummy = function FAIL_should_not_pause_here() { return 0; };
8 8
9 function testFunction() 9 function testFunction()
10 { 10 {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 54 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
55 { 55 {
56 InspectorTest.captureStackTrace(callFrames); 56 InspectorTest.captureStackTrace(callFrames);
57 InspectorTest.addResult("Pause reason: " + reason); 57 InspectorTest.addResult("Pause reason: " + reason);
58 InspectorTest.completeDebuggerTest(); 58 InspectorTest.completeDebuggerTest();
59 } 59 }
60 60
61 function onAsyncOperationStarted(event) 61 function onAsyncOperationStarted(event)
62 { 62 {
63 var operation = event.data.operation; 63 var operation = event.data;
64 var callFrame = operation.stackTrace && operation.stackTrace[0]; 64 var callFrame = operation.stackTrace && operation.stackTrace[0];
65 var functionName = callFrame && callFrame.functionName; 65 var functionName = callFrame && callFrame.functionName;
66 if (functionName === "setAsyncBreakpointForMe") 66 if (functionName === "setAsyncBreakpointForMe")
67 InspectorTest.DebuggerAgent.setAsyncOperationBreakpoint(operation.id ); 67 InspectorTest.DebuggerAgent.setAsyncOperationBreakpoint(operation.id );
68 } 68 }
69 } 69 }
70 70
71 </script> 71 </script>
72 </head> 72 </head>
73 73
74 <body onload="runTest()"> 74 <body onload="runTest()">
75 <p> 75 <p>
76 Tests AsyncOperation breakpoints. 76 Tests AsyncOperation breakpoints.
77 </p> 77 </p>
78 </body> 78 </body>
79 </html> 79 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/async-operation-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698