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

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

Issue 213383010: DevTools: split slow formatter breakpoints tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed from TestExpectations 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-4.html
diff --git a/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-2.html b/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-4.html
similarity index 62%
copy from LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-2.html
copy to LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-4.html
index 843981a8188f755124c4ff3965ee000935f8ffe7..95f64b9302d5626f41b6d1c26fe65a732d5ddb45 100644
--- a/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-2.html
+++ b/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-4.html
@@ -22,38 +22,9 @@ var test = function()
var formattedSourceFrame;
InspectorTest.runDebuggerTestSuite([
- 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 testBreakpointSetInOriginalAndRemovedInFormatted(next)
{
- InspectorTest.showScriptSource("script-formatter-breakpoints-2.html", didShowScriptSource);
+ InspectorTest.showScriptSource("script-formatter-breakpoints-4.html", didShowScriptSource);
function didShowScriptSource(frame)
{
@@ -85,14 +56,10 @@ var test = function()
]);
}
-
</script>
-
</head>
-
<body onload="runTest()">
<p>Tests the script formatting is working fine with breakpoints.
</p>
-
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698