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

Unified Diff: LayoutTests/inspector/sources/debugger/scripts-sorting.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/scripts-sorting.html
diff --git a/LayoutTests/inspector/sources/debugger/scripts-sorting.html b/LayoutTests/inspector/sources/debugger/scripts-sorting.html
deleted file mode 100644
index 0e9fa09025dc4955c58eec374a8fd06b0cfbe727..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/scripts-sorting.html
+++ /dev/null
@@ -1,99 +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>
-function test()
-{
- function dumpNavigator(sourcesNavigatorView)
- {
- InspectorTest.dumpNavigatorView(sourcesNavigatorView, "sources", " ");
- }
-
- function createNavigatorView(constructor)
- {
- var navigatorView = new constructor();
- navigatorView.setWorkspace(InspectorTest.testWorkspace);
- navigatorView.show(WebInspector.inspectorView.element);
- return navigatorView;
- }
-
- InspectorTest.createWorkspaceWithTarget(true);
- sourcesNavigatorView = createNavigatorView(WebInspector.SourcesNavigatorView);
- contentScriptsNavigatorView = createNavigatorView(WebInspector.ContentScriptsNavigatorView);
-
- var uiSourceCodes = [];
- function addUISourceCode(url, isContentScript)
- {
- var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "");
- var uiSourceCode = InspectorTest.testNetworkProject.addFileForURL(url, contentProvider, isContentScript);
- uiSourceCodes.push(uiSourceCode);
- }
-
- function dumpNavigator()
- {
- InspectorTest.dumpNavigatorView(sourcesNavigatorView, "sources", " ");
- InspectorTest.dumpNavigatorView(contentScriptsNavigatorView, "contentScripts", " ");
- }
-
- function dumpScriptsList()
- {
- InspectorTest.addResult("");
- dumpNavigator();
-
- sourcesNavigatorView.revealUISourceCode(uiSourceCodes[0]);
- contentScriptsNavigatorView.revealUISourceCode(uiSourceCodes[0]);
-
- dumpNavigator();
-
- for (var i = 0; i < uiSourceCodes.length; ++i) {
- sourcesNavigatorView.revealUISourceCode(uiSourceCodes[i]);
- contentScriptsNavigatorView.revealUISourceCode(uiSourceCodes[i]);
- }
-
- dumpNavigator();
- }
-
- var scripts = [
- "block.js?block=foo",
- "ga.js",
- "lenta.ban?pg=4883&ifr=1",
- "lenta.ban?pg=5309&ifr=1",
- "top100.jcn?80674",
- "_js/production/motor.js?1308927432",
- "i/xgemius.js",
- "i/js/jquery-1.5.1.min.js",
- "i/js/jquery.cookie.js",
- "foo/path/bar.js?file=bar/zzz.js",
- "foo/path/foo.js?file=bar/aaa.js" ];
- for (var i = 0; i < scripts.length; ++i)
- addUISourceCode("http://foo.com/" + scripts[i]);
-
- var scripts2 = [
- "foo/path/bar.js?file=bar/zzz.js",
- "foo/path/foo.js?file=bar/aaa.js" ];
- for (var i = 0; i < scripts2.length; ++i)
- addUISourceCode("http://bar.com/" + scripts2[i]);
- addUISourceCode("*Non*URL*path");
-
- var extensions = [
- "extension-schema://extension-name/bar.js",
- "extension-schema://extension-name/folder/baz.js" ];
- for (var i = 0; i < extensions.length; ++i)
- addUISourceCode(extensions[i], true);
- addUISourceCode("*Another*Non*URL*path", true);
- dumpScriptsList();
- InspectorTest.completeTest();
-}
-</script>
-
-</head>
-<body onload="runTest()">
-<p>
-Tests scripts sorting in the scripts panel.
-</p>
-</body>
-
-</html>

Powered by Google App Engine
This is Rietveld 408576698