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

Unified Diff: LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-1.html

Issue 188443004: DevTools: Split slow script-formatter-breakpoints.html test into two tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
Index: LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-1.html
diff --git a/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints.html b/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-1.html
similarity index 56%
copy from LayoutTests/inspector/sources/debugger/script-formatter-breakpoints.html
copy to LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-1.html
index e4127b62720e05e0115d277025a60fa526948052..6110f8779a2d3d185852a1dc4e4c21fc8706269d 100644
--- a/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints.html
+++ b/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-1.html
@@ -24,7 +24,7 @@ var test = function()
InspectorTest.runDebuggerTestSuite([
function testBreakpointsInOriginalAndFormattedSource(next)
{
- InspectorTest.showScriptSource("script-formatter-breakpoints.html", didShowScriptSource);
+ InspectorTest.showScriptSource("script-formatter-breakpoints-1.html", didShowScriptSource);
function didShowScriptSource(frame)
{
@@ -63,67 +63,6 @@ var test = function()
}
},
- function testBreakpointSetInOriginalAndRemovedInFormatted(next)
- {
- InspectorTest.showScriptSource("script-formatter-breakpoints.html", didShowScriptSource);
-
- function didShowScriptSource(frame)
- {
- sourceFrame = frame;
- InspectorTest.addResult("Adding breakpoint.");
- InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoint.prototype, "_addResolvedLocation", breakpointResolved);
- InspectorTest.setBreakpoint(sourceFrame, 11, "", true);
- }
-
- function breakpointResolved()
- {
- InspectorTest.addResult("Formatting.");
- InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorAction.prototype, "_updateButton", uiSourceCodeScriptFormatted);
- scriptFormatter._toggleFormatScriptSource();
- }
-
- function uiSourceCodeScriptFormatted()
- {
- InspectorTest.addResult("Removing breakpoint.");
- formattedSourceFrame = panel.visibleView;
- InspectorTest.removeBreakpoint(formattedSourceFrame, 16);
- InspectorTest.addResult("Unformatting.");
- scriptFormatter._discardFormattedUISourceCodeScript(panel.visibleView.uiSourceCode());
- var breakpoints = WebInspector.breakpointManager._storage._setting.get();
- InspectorTest.assertEquals(breakpoints.length, 0, "There should not be any breakpoints in the storage.");
- next();
- }
- },
-
- function testBreakpointsSetAndRemoveInFormattedSource(next)
- {
- InspectorTest.showScriptSource("unformatted.js", didShowScriptSource);
-
- function didShowScriptSource(frame)
- {
- sourceFrame = frame;
- InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorAction.prototype, "_updateButton", uiSourceCodeScriptFormatted);
- scriptFormatter._toggleFormatScriptSource();
- }
-
- function uiSourceCodeScriptFormatted()
- {
- formattedSourceFrame = panel.visibleView;
- InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true);
- InspectorTest.waitUntilPaused(pausedInF2);
- InspectorTest.evaluateInPageWithTimeout("f2()");
- }
-
- function pausedInF2(callFrames)
- {
- InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed");
- InspectorTest.removeBreakpoint(formattedSourceFrame, 3);
- scriptFormatter._discardFormattedUISourceCodeScript(panel.visibleView.uiSourceCode());
- InspectorTest.dumpBreakpointSidebarPane("while paused in raw");
- InspectorTest.resumeExecution(next);
- }
- },
-
function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next)
{
InspectorTest.showScriptSource("unformatted.js", didShowScriptSource);

Powered by Google App Engine
This is Rietveld 408576698