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

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

Issue 2747863007: DevTools: clean up tests to not depend on NetworkProject.addFile method (Closed)
Patch Set: typo Created 3 years, 9 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: 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 00012882eb36a59284ffdc723afab7446d23cb78..483e69ff43c098ffd40f3b0171f4725c4e4a2a77 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
@@ -45,7 +45,7 @@ function test()
fs.reportCreated(fileSystemCreated);
}
- function fileSystemCreated()
+ async function fileSystemCreated()
{
UI.viewManager.showView("sources.search");
@@ -57,8 +57,8 @@ function test()
}
}
- addNetworkUISourceCode("http://localhost/search.html", resources["search.html"]);
- jsNetworkUISourceCode = addNetworkUISourceCode("http://localhost/search.js", resources["search.js"]);
+ await InspectorTest.addScriptUISourceCode("http://localhost/search.html", resources["search.html"]);
+ jsNetworkUISourceCode = await InspectorTest.addScriptUISourceCode("http://localhost/search.js", resources["search.js"]);
InspectorTest.runTestSuite(testSuite);
}
@@ -71,14 +71,6 @@ function test()
});
}
- function addNetworkUISourceCode(url, content)
- {
- var contentProvider = Common.StaticContentProvider.fromString(url, Common.resourceTypes.Script, content);
- var networkProject = Bindings.NetworkProject.forTarget(SDK.targetManager.mainTarget());
- var uiSourceCode = networkProject.addFile(contentProvider, InspectorTest.mainFrame(), false);
- return uiSourceCode;
- }
-
InspectorFrontendHost.searchInPath = function(requestId, path, query)
{
setTimeout(reply);

Powered by Google App Engine
This is Rietveld 408576698