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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2122353002: [DevTools] Make resource tree model optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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/inspector-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
index c21526c4ae18917079498cd5091690d510057eda..3c77a7c7237e39a379f748e61cf1dfc2c353160d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -746,7 +746,7 @@ InspectorTest.hideInspectorView = function()
InspectorTest.mainFrame = function()
{
- return InspectorTest.mainTarget.resourceTreeModel.mainFrame;
+ return WebInspector.ResourceTreeModel.fromTarget(InspectorTest.mainTarget).mainFrame;
}
InspectorTest.StringOutputStream = function(callback)
@@ -963,7 +963,7 @@ WebInspector.targetManager.observeTargets({
InspectorTest.consoleModel = target.consoleModel;
InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(target);
- InspectorTest.resourceTreeModel = target.resourceTreeModel;
+ InspectorTest.resourceTreeModel = WebInspector.ResourceTreeModel.fromTarget(target);
InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target);
InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(target);
InspectorTest.runtimeModel = target.runtimeModel;

Powered by Google App Engine
This is Rietveld 408576698