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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.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-in-files.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html b/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html
index c1cb631ddd9de485937b44b009253bacbaab6b70..d2626113e7b22b2095ef1dc1dcf69c8ec5a0bbd1 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.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 names = ["search.html", "search.js", "search.css"];
var fs = new InspectorTest.TestFileSystem("file:///var/www");
@@ -179,7 +187,7 @@ function test()
function testDirtyFiles(next)
{
var uiSourceCode;
- var uiSourceCodes = InspectorTest.fileSystemUISourceCodes();
+ var uiSourceCodes = fileSystemUISourceCodes();
for (var i = 0; i < uiSourceCodes.length; ++i) {
if (uiSourceCodes[i].name() === "search.js") {
uiSourceCode = uiSourceCodes[i];

Powered by Google App Engine
This is Rietveld 408576698