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

Unified Diff: LayoutTests/inspector/sources/debugger/breakpoint-manager-listeners-count.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/breakpoint-manager-listeners-count.html
diff --git a/LayoutTests/inspector/sources/debugger/breakpoint-manager-listeners-count.html b/LayoutTests/inspector/sources/debugger/breakpoint-manager-listeners-count.html
deleted file mode 100644
index 0064f214345482f7fcddb52cdaedb4b5121bb6f5..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/breakpoint-manager-listeners-count.html
+++ /dev/null
@@ -1,57 +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/script1.js"></script>
-<script src="resources/script2.js"></script>
-<script>
-function test()
-{
- InspectorTest.runDebuggerTestSuite([
- function testSourceFramesCount(next)
- {
- var panel = WebInspector.panels.sources;
- var sourceFrameCount = 0;
-
- InspectorTest.showScriptSource("script1.js", didShowScriptSources);
-
- function didShowScriptSources()
- {
- InspectorTest.reloadPage(didReload);
- }
-
- function didReload()
- {
- InspectorTest.showScriptSource("script2.js", didShowScriptSourceAgain);
- }
-
- function didShowScriptSourceAgain()
- {
- var listeners = WebInspector.breakpointManager._listeners.get("breakpoint-added");
- // There should be 3 breakpoint-added event listeners:
- // - BreakpointsSidebarPane
- // - 2 shown tabs
- InspectorTest.addResult("Number of breakpoint-added event listeners is " + listeners.length);
-
- function dumpListener(listener)
- {
- if (!(listener.thisObject instanceof WebInspector.SourceFrame))
- return;
- var sourceFrame = listener.thisObject;
- InspectorTest.addResult(" " + sourceFrame._uiSourceCode.name());
- }
-
- InspectorTest.addResult("Dumping SourceFrames listening for breakpoint-added event:");
- listeners.map(dumpListener);
-
- next();
- }
- }
- ]);
-};
-</script>
-</head>
-<body onload="runTest()">
-<p>Tests that scripts panel does not create too many source frames.</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698