Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: LayoutTests/inspector/sources/debugger/frameworks-step-from-framework.html

Issue 360053002: Revert of DevTools: Debugger StepInto/Out/Over initiated from a framework should not black-box it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/frameworks-step-from-framework-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/sources/debugger/frameworks-step-from-framework.html
diff --git a/LayoutTests/inspector/sources/debugger/frameworks-step-from-framework.html b/LayoutTests/inspector/sources/debugger/frameworks-step-from-framework.html
deleted file mode 100644
index e1f2c49a14156e91f8df6a00ad9a13518c4bdfb9..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/frameworks-step-from-framework.html
+++ /dev/null
@@ -1,98 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="resources/framework.js"></script>
-<script>
-
-function testFunction()
-{
- Framework.safeRun(Framework.breakInFramework, Framework.empty)
- Framework.safeRun(Framework.empty); // should not step inside
- Framework.empty(); // dummy call
- Framework.sendXHR('/foo?a=b');
-}
-
-function test()
-{
- var frameworkRegexString = "/framework\\.js$";
- WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest();
- WebInspector.settings.skipStackFramesSwitch.set(true);
- WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString);
-
- InspectorTest.setQuiet(true);
- InspectorTest.startDebuggerTest(step1);
-
- var xhrPane;
-
- function step1()
- {
- xhrPane = WebInspector.panels.sources.sidebarPanes.xhrBreakpoints;
- xhrPane._setBreakpoint("foo", true);
- InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
- }
-
- var actions = [
- "Print", // debugger;
- "StepInto", "Print",
- "StepOver", "Print",
- "StepOut", "Print",
- "StepInto", "Print", // should not step inside
- "Resume", "Print", // should stop on XHR.send()
- "StepInto", "Print", // should step inside framework
- ];
-
- function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
- {
- var action = actions.shift();
- if (action === "Print") {
- InspectorTest.captureStackTrace(callFrames);
- InspectorTest.addResult("");
- while (action === "Print")
- action = actions.shift();
- }
-
- if (!action) {
- completeTest()
- return;
- }
-
- InspectorTest.addResult("Executing " + action + "...");
- switch (action) {
- case "StepInto":
- WebInspector.panels.sources._stepIntoButton.element.click();
- break;
- case "StepOver":
- WebInspector.panels.sources._stepOverButton.element.click();
- break;
- case "StepOut":
- WebInspector.panels.sources._stepOutButton.element.click();
- break;
- case "Resume":
- InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
- break;
- default:
- InspectorTest.addResult("FAIL: Unknown action: " + action);
- completeTest()
- return;
- }
- InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
- }
-
- function completeTest()
- {
- xhrPane._removeBreakpoint("foo");
- InspectorTest.completeDebuggerTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<input type='button' onclick='testFunction()' value='Test'/>
-<p>
-Tests stepping from framework call frames.
-</p>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/frameworks-step-from-framework-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698