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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.html

Issue 2533073003: [DevTools] Remove workspace-test.js part1. (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.html b/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.html
index 6e220096dc8bedc4b696ef1f33c6fcd7ec70c8fd..8f650dbe1a3eac98e5152ac21f5599b8ab0a0c3a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.html
@@ -3,12 +3,20 @@
<title>Test search in sources.</title>
<script src="../inspector-test.js"></script>
<script src="../isolated-filesystem-test.js"></script>
-<script src="../workspace-test.js"></script>
<script src="../debugger-test.js"></script>
<script src="./search-test.js"></script>
<script>
function test()
{
+ function fileSystemUISourceCodes()
+ {
+ var uiSourceCodes = [];
+ var fileSystemProjects = Workspace.workspace.projectsForType(Workspace.projectTypes.FileSystem);
+ for (var project of fileSystemProjects)
+ uiSourceCodes = uiSourceCodes.concat(project.uiSourceCodes());
+ return uiSourceCodes;
+ }
+
var scope = new Sources.SourcesSearchScope();
var fs = new InspectorTest.TestFileSystem("file:///var/www");
var names = ["search.html", "search.js", "search.css"];
@@ -41,7 +49,7 @@ function test()
{
UI.viewManager.showView("sources.search");
- var uiSourceCodes = InspectorTest.fileSystemUISourceCodes();
+ var uiSourceCodes = fileSystemUISourceCodes();
for (var i = 0; i < uiSourceCodes.length; ++i) {
if (uiSourceCodes[i].name() === "search.js") {
jsFileSystemUISourceCode = uiSourceCodes[i];

Powered by Google App Engine
This is Rietveld 408576698