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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html

Issue 2921963002: [Devtools] Removed NetworkRequest dependency on NetworkManager (Closed)
Patch Set: Merge branch 'REMOVE_REDIRECTS_REBASE' into REMOVE_MANAGER_DEPENDENCY Created 3 years, 6 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/network/json-preview.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html
index 412b372d7675134b99740622140b5988ba969e6a..44660ef7d0fb0bdf2b20635d9627c4ad533b451a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html
@@ -8,7 +8,7 @@ function test()
function createNetworkRequestWithJSONMIMEType(type)
{
InspectorTest.addResult("Creating a NetworkRequest with type: " + type);
- var request = new SDK.NetworkRequest(SDK.targetManager.mainTarget(), 0, 'http://localhost');
+ var request = new SDK.NetworkRequest(0, 'http://localhost');
request.mimeType = type;
request._contentData = Promise.resolve({ error: null, content: '{"number": 42}', encoded: false });
return request;

Powered by Google App Engine
This is Rietveld 408576698