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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.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/inspector/sources/sources-panel-extension-names.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html b/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html
index 2e123c7e71e85b2dc616bceb86b299e7acd0f9f6..411347a0bfc92425d789b5025a2dc76bd508b923 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html
@@ -17,11 +17,10 @@ function test()
var mockContentScriptURL = mockExecutionContext.origin + "/script.js";
InspectorTest.runTestSuite([
- function testAddExecutionContextBeforeFile(next)
+ async function testAddExecutionContextBeforeFile(next)
{
InspectorTest.runtimeModel._executionContextCreated(mockExecutionContext);
- var contentProvider = Common.StaticContentProvider.fromString(mockContentScriptURL, Common.resourceTypes.Script, "");
- Bindings.NetworkProject.forTarget(InspectorTest.mainTarget).addFile(contentProvider, InspectorTest.mainFrame(), true);
+ await InspectorTest.addScriptUISourceCode(mockContentScriptURL, '', true, 1234567);
InspectorTest.dumpNavigatorView(contentScriptsNavigatorView);
next();
},

Powered by Google App Engine
This is Rietveld 408576698