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

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

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 8 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 5e869df7823482806aa0b0df052a495e003c4483..31ceab44b7ec4c89eb49b09c8e00747c5651b770 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(InspectorTest.networkManager, InspectorTest.NetworkAgent, 0, 'http://localhost');
request.mimeType = type;
request._content = '{"number": 42}';
return request;

Powered by Google App Engine
This is Rietveld 408576698