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

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-disable-add-breakpoint.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/debugger-disable-add-breakpoint.html
diff --git a/LayoutTests/inspector/sources/debugger/debugger-disable-add-breakpoint.html b/LayoutTests/inspector/sources/debugger/debugger-disable-add-breakpoint.html
deleted file mode 100644
index a8790c2e3d3fac0f278cef867405bfda47e05e06..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/debugger-disable-add-breakpoint.html
+++ /dev/null
@@ -1,92 +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()
-{
- return 0;
-}
-
-var test = function()
-{
- var testName = InspectorTest.resourceTreeModel.inspectedPageURL();
- testName = testName.substring(testName.lastIndexOf('/') + 1);
- InspectorTest.startDebuggerTest(step1);
- var testSourceFrame;
- function step1()
- {
- InspectorTest.showScriptSource(testName, step2);
- }
-
- function step2(sourceFrame)
- {
- testSourceFrame = sourceFrame;
- InspectorTest.addResult("Main resource was shown.");
- InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerWasDisabled, step3, this);
- InspectorTest.debuggerModel.disableDebugger();
- }
-
- function step3()
- {
- InspectorTest.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.DebuggerWasDisabled, step3, this);
- InspectorTest.addResult("Debugger disabled.");
- InspectorTest.setBreakpoint(testSourceFrame, 8, "", true);
- InspectorTest.addResult("Breakpoint added");
- InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerWasEnabled, step4, this);
- InspectorTest.debuggerModel.enableDebugger();
- }
-
- function step4()
- {
- InspectorTest.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.DebuggerWasEnabled, step4, this);
- InspectorTest.addResult("Debugger was enabled");
- InspectorTest.runTestFunctionAndWaitUntilPaused(step5);
- }
-
- function step5()
- {
- InspectorTest.resumeExecution(step6);
- }
-
- function step6()
- {
- InspectorTest.addResult("Disable debugger again");
- InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerWasDisabled, step7, this);
- InspectorTest.debuggerModel.disableDebugger();
- }
-
- function step7()
- {
- InspectorTest.addResult("Debugger disabled");
- var breakpoint = WebInspector.breakpointManager.findBreakpointOnLine(testSourceFrame.uiSourceCode(), 8);
- breakpoint.remove();
- InspectorTest.addResult("Breakpoint removed");
- InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerWasEnabled, step8, this);
- InspectorTest.debuggerModel.enableDebugger();
- }
-
- function step8()
- {
- InspectorTest.addResult("Debugger enabled");
- InspectorTest.addResult("Evaluating test function.");
- InspectorTest.evaluateInPage("testFunction()", step9);
- }
-
- function step9()
- {
- InspectorTest.addResult("function evaluated without a pause on the breakpoint.")
- InspectorTest.completeDebuggerTest();
- }
-};
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that breakpoints are correctly handled while debugger is turned off</a>
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698