| Index: LayoutTests/inspector/sources/debugger/async-callstack-scopes.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-scopes.html b/LayoutTests/inspector/sources/debugger/async-callstack-scopes.html
|
| deleted file mode 100644
|
| index 1779e87e9769d3a6ade0336dc3c8f1cea893613c..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/async-callstack-scopes.html
|
| +++ /dev/null
|
| @@ -1,125 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script>
|
| -
|
| -function makeClosure(n, callback, withScope)
|
| -{
|
| - var makeClosureLocalVar = 'local.' + n;
|
| - return function innerFunction(x) {
|
| - var innerFunctionLocalVar = x + 2;
|
| - try {
|
| - throw new Error("An exception");
|
| - } catch (e) {
|
| - e.toString();
|
| - if (withScope) {
|
| - with (withScope) {
|
| - callback();
|
| - }
|
| - } else {
|
| - callback();
|
| - }
|
| - }
|
| - return n + makeClosureLocalVar + x + innerFunctionLocalVar;
|
| - }
|
| -}
|
| -
|
| -function testFunction()
|
| -{
|
| - var delay1 = 0;
|
| - setTimeout(timeout1, delay1);
|
| -}
|
| -
|
| -function timeout1()
|
| -{
|
| - var localInTimeout1 = "timeout1";
|
| - function innerTimeout1()
|
| - {
|
| - var localInInnerTimeout1 = "innerTimeout1";
|
| - setTimeout(timeout2, Number(localInInnerTimeout1 + localInTimeout1) || 0);
|
| - }
|
| - makeClosure(1, innerTimeout1, { foo: "bar1", __proto__: null })(100);
|
| -}
|
| -
|
| -function timeout2()
|
| -{
|
| - var localInTimeout2 = "timeout2";
|
| - function innerTimeout2()
|
| - {
|
| - var localInInnerTimeout2 = "innerTimeout2";
|
| - debugger;
|
| - }
|
| - makeClosure(2, innerTimeout2, { foo: "bar2", __proto__: null })(200);
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - var maxAsyncCallStackDepth = 4;
|
| -
|
| - InspectorTest.setQuiet(true);
|
| - InspectorTest.startDebuggerTest(step1);
|
| -
|
| - function step1()
|
| - {
|
| - InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| - InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
|
| - }
|
| -
|
| - function didPause()
|
| - {
|
| - var callStackPane = WebInspector.panels.sources.sidebarPanes.callstack;
|
| - var scopeChainPane = WebInspector.panels.sources.sidebarPanes.scopechain;
|
| - InspectorTest.addResult("Dumping call frames with scope chains:\n");
|
| - printNextCallFrame();
|
| -
|
| - function printNextCallFrame()
|
| - {
|
| - var index = callStackPane._selectedCallFrameIndex();
|
| - InspectorTest.assertGreaterOrEqual(index, 0);
|
| - var frame = callStackPane.callFrames[index];
|
| - InspectorTest.addResult((index + 1) + ") " + frame.title() + " " + frame.subtitle());
|
| - expandScopeChain();
|
| - }
|
| -
|
| - function expandScopeChain()
|
| - {
|
| - // Expand all but global scopes. Expanding global scope takes too long
|
| - // so we keep it collapsed.
|
| - var sections = scopeChainPane._sections;
|
| - // global scope is always the last one.
|
| - for (var i = 0; i < sections.length - 1; ++i)
|
| - sections[i].expand();
|
| - InspectorTest.runAfterPendingDispatches(printScopeChain);
|
| - }
|
| -
|
| - function printScopeChain()
|
| - {
|
| - InspectorTest.dumpScopeVariablesSidebarPane();
|
| - InspectorTest.addResult("");
|
| -
|
| - // Dump up to the testFunction() - we don't care what was before.
|
| - var index = callStackPane._selectedCallFrameIndex();
|
| - var frame = callStackPane.callFrames[index];
|
| - if (frame.title() !== "testFunction" && callStackPane._selectNextCallFrameOnStack())
|
| - InspectorTest.runAfterPendingDispatches(printNextCallFrame);
|
| - else
|
| - InspectorTest.completeDebuggerTest();
|
| - }
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<input type='button' onclick='testFunction()' value='Test'/>
|
| -<p>
|
| -Test that sections representing scopes are expandable and contain correct data for async call frames.
|
| -</p>
|
| -</body>
|
| -</html>
|
|
|