| OLD | NEW |
| 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 Loading... |
| 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.stackTrace ? operation.stackTrace.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> |
| OLD | NEW |