| Index: LayoutTests/inspector/sources/debugger/async-callstack-middle-run.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-middle-run.html b/LayoutTests/inspector/sources/debugger/async-callstack-middle-run.html
|
| deleted file mode 100644
|
| index d4425a21588c52702a1801477f2a434f282ab787..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/async-callstack-middle-run.html
|
| +++ /dev/null
|
| @@ -1,83 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script>
|
| -
|
| -function testFunction()
|
| -{
|
| - setTimeout(timeoutOffCapturing, 0);
|
| -}
|
| -
|
| -function timeoutOffCapturing()
|
| -{
|
| - setTimeout(timeoutOffCapturing2, 0);
|
| - debugger; // Will start capturing async stacks from this point.
|
| - setTimeout(timeoutOnCapturing, 0);
|
| -}
|
| -
|
| -function timeoutOffCapturing2()
|
| -{
|
| - debugger;
|
| -}
|
| -
|
| -function timeoutOnCapturing()
|
| -{
|
| - debugger;
|
| -}
|
| -
|
| -var test = function()
|
| -{
|
| - var totalDebuggerStatements = 3;
|
| - var maxAsyncCallStackDepth = 4;
|
| -
|
| - InspectorTest.setQuiet(true);
|
| - InspectorTest.startDebuggerTest(step1);
|
| -
|
| - function step1()
|
| - {
|
| - InspectorTest.DebuggerAgent.setAsyncCallStackDepth(0, step2);
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| - InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
|
| - }
|
| -
|
| - function resumeExecution()
|
| - {
|
| - InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
|
| - }
|
| -
|
| - var step = 0;
|
| - var callStacksOutput = [];
|
| - function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
|
| - {
|
| - ++step;
|
| - if (step === 1) {
|
| - InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, resumeExecution);
|
| - return;
|
| - }
|
| -
|
| - callStacksOutput.push(InspectorTest.captureStackTraceIntoString(callFrames, asyncStackTrace) + "\n");
|
| - if (step < totalDebuggerStatements) {
|
| - resumeExecution();
|
| - } else {
|
| - InspectorTest.addResult("Captured call stacks in no particular order:");
|
| - callStacksOutput.sort();
|
| - InspectorTest.addResults(callStacksOutput);
|
| - InspectorTest.completeDebuggerTest();
|
| - }
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests that capturing asynchronous call stacks in debugger works if started after some time since the page loads.
|
| -</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|