| 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];
|
|
|