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

Unified Diff: LayoutTests/inspector/sources/debugger/source-frame-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/source-frame-count.html
diff --git a/LayoutTests/inspector/sources/debugger/source-frame-count.html b/LayoutTests/inspector/sources/debugger/source-frame-count.html
deleted file mode 100644
index 6240d758d33d462ff0cc8228a8b091cd3043a097..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/source-frame-count.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 src="resources/script1.js"></script>
-<script src="resources/script2.js"></script>
-<script src="resources/script3.js"></script>
-
-<script>
-
-function test()
-{
- InspectorTest.runDebuggerTestSuite([
- function testSourceFramesCount(next)
- {
- var panel = WebInspector.panels.sources;
- var sourceFrameCount = 0;
-
- InspectorTest.showScriptSource("source-frame-count.html", step2);
-
- function step2()
- {
- InspectorTest.showScriptSource("script1.js", step3);
- }
-
- function step3()
- {
- InspectorTest.showScriptSource("script2.js", didShowScriptSources);
- }
-
- function didShowScriptSources()
- {
- var alreadyShownURLs = {};
- function didCreateSourceFrame()
- {
- if (!alreadyShownURLs[this._uiSourceCode.originURL()])
- sourceFrameCount += 1;
- alreadyShownURLs[this._uiSourceCode.originURL()] = true;
- }
- InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "wasShown", didCreateSourceFrame, true);
- InspectorTest.reloadPage(didReload);
- }
-
- function didReload()
- {
- InspectorTest.showScriptSource("script3.js", didShowScriptSourceAgain);
- }
-
- function didShowScriptSourceAgain()
- {
- InspectorTest.assertTrue(panel.visibleView._uiSourceCode.originURL().indexOf("script3.js") !== -1);
- // There should be maximum 3 source frames shown:
- // - first one is the first shown (first tab added)
- // - second one is the last viewed ("script2.js")
- // - third one is explicitly selected script3.js.
- InspectorTest.assertEquals(true, sourceFrameCount <= 3, "too many source frames created after page reload");
- next();
- }
- }
- ]);
-};
-
-</script>
-
-<script>
-function secondInlinedScriptInPage()
-{
- return 0;
-}
-</script>
-
-<script>
-function thirdInlinedScriptInPage()
-{
- return 0;
-}
-</script>
-
-<script>
-function fourthInlinedScriptInPage()
-{
- return 0;
-}
-</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