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