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

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

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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/workspace-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js
index 0f7f0db9f7599189235da7b5a28b4295e3c5dcd7..d5987ac5402cb94d3f78710699a2bbab27a79177 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js
@@ -41,12 +41,12 @@ InspectorTest.createMockTarget = function(id, debuggerModelConstructor, capabili
var MockTarget = function(name, connection, callback)
{
WebInspector.Target.call(this, InspectorTest.testTargetManager, name, capabilities, connection, null, callback);
+ this._inspectedURL = InspectorTest.mainTarget.inspectedURL();
this.consoleModel = new WebInspector.ConsoleModel(this);
this.networkManager = new WebInspector.NetworkManager(this);
this.runtimeModel = new WebInspector.RuntimeModel(this);
this.securityOriginManager = WebInspector.SecurityOriginManager.fromTarget(this);
this.resourceTreeModel = new WebInspector.ResourceTreeModel(this, this.networkManager, this.securityOriginManager);
- this.resourceTreeModel._inspectedPageURL = InspectorTest.resourceTreeModel._inspectedPageURL;
this.resourceTreeModel._cachedResourcesProcessed = true;
this.resourceTreeModel._frameAttached("42", 0);
this.debuggerModel = debuggerModelConstructor ? new debuggerModelConstructor(this) : new WebInspector.DebuggerModel(this);

Powered by Google App Engine
This is Rietveld 408576698