Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-ui / copy-stack-trace.html
blobaf779e68de70c8b46640975f8e98ed17222be395
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>
7 function testFunction()
9 functionBar();
12 function functionBar()
14 functionBaz();
17 function functionBaz()
19 debugger;
22 var test = function()
24 InspectorTest.startDebuggerTest(step1);
26 function step1()
28 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
31 function step2()
33 InspectorFrontendHost.copyText = InspectorTest.addResult.bind(InspectorTest);
34 WebInspector.panels.sources.sidebarPanes.callstack._copyStackTrace();
35 InspectorTest.completeDebuggerTest();
39 </script>
40 </head>
42 <body onload="runTest()">
43 <p>
44 Tests that debugger will copy valid stack trace upon context menu action.
45 </p>
47 </body>
48 </html>