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 function testFunction() | 7 function testFunction() |
8 { | 8 { |
9 debugger; | 9 debugger; |
10 setTimeout(callback1, 0); | 10 setTimeout(callback1, 0); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 { | 99 { |
100 var operationId = event.data; | 100 var operationId = event.data; |
101 InspectorTest.addResult("==> AsyncOperationCompleted: " + asyncOperation
s[operationId]); | 101 InspectorTest.addResult("==> AsyncOperationCompleted: " + asyncOperation
s[operationId]); |
102 delete asyncOperations[operationId]; | 102 delete asyncOperations[operationId]; |
103 maybeRunNoAsyncOperationsCallback(); | 103 maybeRunNoAsyncOperationsCallback(); |
104 } | 104 } |
105 | 105 |
106 function asyncOperationDescription(operation) | 106 function asyncOperationDescription(operation) |
107 { | 107 { |
108 var link = ""; | 108 var link = ""; |
109 var callFrame = operation.stackTrace && operation.stackTrace[0]; | 109 var callFrame = operation.stack ? operation.stack.callFrames[0] : null; |
110 if (callFrame) { | 110 if (callFrame) { |
111 var url = WebInspector.displayNameForURL(callFrame.url); | 111 var url = WebInspector.displayNameForURL(callFrame.url); |
112 link = " " + callFrame.functionName + " @ " + url + ":" + callFrame.
lineNumber; | 112 link = " " + callFrame.functionName + " @ " + url + ":" + callFrame.
lineNumber; |
113 } | 113 } |
114 return ("[" + operation.description + "]" + link); | 114 return ("[" + operation.stack.description + "]" + link); |
115 } | 115 } |
116 | 116 |
117 function maybeRunNoAsyncOperationsCallback() | 117 function maybeRunNoAsyncOperationsCallback() |
118 { | 118 { |
119 if (!noAsyncOperationsCallback) | 119 if (!noAsyncOperationsCallback) |
120 return; | 120 return; |
121 for (var id in asyncOperations) | 121 for (var id in asyncOperations) |
122 return; | 122 return; |
123 var callback = noAsyncOperationsCallback; | 123 var callback = noAsyncOperationsCallback; |
124 noAsyncOperationsCallback = null; | 124 noAsyncOperationsCallback = null; |
(...skipping 23 matching lines...) Expand all Loading... |
148 | 148 |
149 </script> | 149 </script> |
150 </head> | 150 </head> |
151 | 151 |
152 <body onload="runTest()"> | 152 <body onload="runTest()"> |
153 <p> | 153 <p> |
154 Tests debugger AsyncOperation events while in a debugger stepping session. | 154 Tests debugger AsyncOperation events while in a debugger stepping session. |
155 </p> | 155 </p> |
156 </body> | 156 </body> |
157 </html> | 157 </html> |
OLD | NEW |