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

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: Comments Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/execution-context-sorted.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 760cf80bbc1aa215b2111c65356a0f5645acb92e..12848b54626e663b5c22606d66ae535b4d303959 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -678,7 +678,7 @@ InspectorTest.hideInspectorView = function()
InspectorTest.mainFrame = function()
{
- return InspectorTest.mainTarget.resourceTreeModel.mainFrame;
+ return WebInspector.ResourceTreeModel.fromTarget(InspectorTest.mainTarget).mainFrame;
}
InspectorTest.StringOutputStream = function(callback)
@@ -895,7 +895,7 @@ WebInspector.targetManager.observeTargets({
InspectorTest.consoleModel = target.consoleModel;
InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(target);
InspectorTest.securityOriginManager = WebInspector.SecurityOriginManager.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;
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/execution-context-sorted.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698