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

Unified Diff: LayoutTests/inspector/sources/debugger/dynamic-scripts-breakpoints.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/dynamic-scripts-breakpoints.html
diff --git a/LayoutTests/inspector/sources/debugger/dynamic-scripts-breakpoints.html b/LayoutTests/inspector/sources/debugger/dynamic-scripts-breakpoints.html
deleted file mode 100644
index 2cd15f2b8b8b8dbe5cba5c52424cc1c0e7175b07..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/dynamic-scripts-breakpoints.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="../../../http/tests/inspector/workspace-test.js"></script>
-<script src="resources/load-dynamic-script.js"></script>
-<script>
-function foobar()
-{
- var i = 0;
- var j = 0;
- var k = i + j;
-}
-
-foobar();
-</script>
-<script>
-function test()
-{
- WebInspector.breakpointManager._storage._breakpoints = {};
- var panel = WebInspector.panels.sources;
-
- InspectorTest.startDebuggerTest();
-
- InspectorTest.showScriptSource("dynamic-scripts-breakpoints.html", didShowScriptSource);
-
- function pathToFileName(path)
- {
- return path.substring(path.lastIndexOf("/") + 1);
- }
-
- function dumpBreakpointStorage()
- {
- var breakpointManager = WebInspector.breakpointManager;
- var breakpoints = breakpointManager._storage._setting.get();
- InspectorTest.addResult(" Dumping breakpoint storage");
- for (var i = 0; i < breakpoints.length; ++i)
- InspectorTest.addResult(" " + pathToFileName(breakpoints[i].sourceFileId) + ":" + breakpoints[i].lineNumber);
- }
-
- function didShowScriptSource(sourceFrame)
- {
- InspectorTest.addResult("Setting breakpoint:");
- InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBreakpoint.prototype, "_addResolvedLocation", breakpointResolved);
- InspectorTest.setBreakpoint(sourceFrame, 11, "", true);
- }
-
- function breakpointResolved(location)
- {
- InspectorTest.waitUntilPaused(paused);
- InspectorTest.addResult("Reloading page.");
- InspectorTest.reloadPage(onPageReloaded);
- }
-
- function paused()
- {
- dumpBreakpointStorage();
- InspectorTest.resumeExecution();
- }
-
- function onPageReloaded()
- {
- InspectorTest.completeDebuggerTest();
- }
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Tests that there is no exception in front-end on page reload when breakpoint is set in HTML document and some dynamic scripts are loaded before the script with the breakpoint is loaded.</p>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698