| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 function testFunction() | |
| 8 { | |
| 9 functionBar(); | |
| 10 } | |
| 11 | |
| 12 function functionBar() | |
| 13 { | |
| 14 functionBaz(); | |
| 15 } | |
| 16 | |
| 17 function functionBaz() | |
| 18 { | |
| 19 debugger; | |
| 20 } | |
| 21 | |
| 22 var test = function() | |
| 23 { | |
| 24 InspectorTest.startDebuggerTest(step1); | |
| 25 | |
| 26 function step1() | |
| 27 { | |
| 28 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | |
| 29 } | |
| 30 | |
| 31 function step2() | |
| 32 { | |
| 33 InspectorFrontendHost.copyText = InspectorTest.addResult.bind(InspectorT
est); | |
| 34 WebInspector.panels.sources.sidebarPanes.callstack._copyStackTrace(); | |
| 35 InspectorTest.completeDebuggerTest(); | |
| 36 } | |
| 37 } | |
| 38 | |
| 39 </script> | |
| 40 </head> | |
| 41 | |
| 42 <body onload="runTest()"> | |
| 43 <p> | |
| 44 Tests that debugger will copy valid stack trace upon context menu action. | |
| 45 </p> | |
| 46 | |
| 47 </body> | |
| 48 </html> | |
| OLD | NEW |