| 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/unformatted-async.js"></script> | 5 <script src="../debugger/resources/unformatted-async.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 setTimeout(f2, 0); | 10 setTimeout(f2, 0); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 InspectorTest.startDebuggerTest(step3); | 26 InspectorTest.startDebuggerTest(step3); |
| 27 } | 27 } |
| 28 | 28 |
| 29 function step3() | 29 function step3() |
| 30 { | 30 { |
| 31 InspectorTest.showScriptSource("unformatted-async.js", step4); | 31 InspectorTest.showScriptSource("unformatted-async.js", step4); |
| 32 } | 32 } |
| 33 | 33 |
| 34 function step4() | 34 function step4() |
| 35 { | 35 { |
| 36 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorAction.protot
ype, "_updateButton", step5); | 36 InspectorTest.addSniffer(Sources.ScriptFormatterEditorAction.prototype,
"_updateButton", step5); |
| 37 scriptFormatter._toggleFormatScriptSource(); | 37 scriptFormatter._toggleFormatScriptSource(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 function step5() | 40 function step5() |
| 41 { | 41 { |
| 42 InspectorTest.runTestFunctionAndWaitUntilPaused(step6); | 42 InspectorTest.runTestFunctionAndWaitUntilPaused(step6); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function step6() | 45 function step6() |
| 46 { | 46 { |
| 47 var callFrameList = self.runtime.sharedInstance(WebInspector.CallStackSi
debarPane).callFrameList; | 47 var callFrameList = self.runtime.sharedInstance(Sources.CallStackSidebar
Pane).callFrameList; |
| 48 for (var item of callFrameList._items) | 48 for (var item of callFrameList._items) |
| 49 InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, "
VM")); | 49 InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, "
VM")); |
| 50 InspectorTest.completeDebuggerTest(); | 50 InspectorTest.completeDebuggerTest(); |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 </script> | 54 </script> |
| 55 </head> | 55 </head> |
| 56 <body onload="runTest()"> | 56 <body onload="runTest()"> |
| 57 <p>Tests that call stack sidebar contains correct urls for call frames.</p> | 57 <p>Tests that call stack sidebar contains correct urls for call frames.</p> |
| 58 </body> | 58 </body> |
| 59 </html> | 59 </html> |
| OLD | NEW |