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

Unified Diff: LayoutTests/inspector/sources/debugger/frameworks-skip-break-program.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/frameworks-skip-break-program.html
diff --git a/LayoutTests/inspector/sources/debugger/frameworks-skip-break-program.html b/LayoutTests/inspector/sources/debugger/frameworks-skip-break-program.html
deleted file mode 100644
index 746aeba17172407b118ee4d93f3be09b66583936..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/frameworks-skip-break-program.html
+++ /dev/null
@@ -1,69 +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()
-{
- debugger;
- Promise.resolve()
- // Should not pause on console.assert() inside framework.
- .then(Framework.bind(Framework.assert, null, false, "Assert from test"))
- // Should not pause on setTimeout inside the framework.
- .then(Framework.willSchedule(Framework.empty, 0))
- .then(stop)
- .catch(function FAIL_should_not_pause(e) { debugger; throw e; });
-}
-
-function stop()
-{
- setTimeout(function() {}, 0); // Should pause here.
-}
-
-function test()
-{
- var frameworkRegexString = "/framework\\.js$";
- WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
-
- var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints;
-
- InspectorTest.startDebuggerTest(step1, true);
-
- function step1()
- {
- InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
- }
-
- function step2()
- {
- InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnAllExceptions);
- pane._setBreakpoint("instrumentation:setTimer");
- InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
- }
-
- function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
- {
- InspectorTest.captureStackTrace(callFrames);
- completeTest();
- }
-
- function completeTest()
- {
- InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions);
- pane._removeBreakpoint("instrumentation:setTimer");
- InspectorTest.completeDebuggerTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<input type='button' onclick='testFunction()' value='Test'/>
-<p>
-Tests that framework blackboxing skips instant pauses (e.g. breakpoints on console.assert(), setTimeout(), etc.) if they happen entirely inside the framework.
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698