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

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

Issue 2009903002: [DevTools] Stick with top frame unless user selected something else. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more logic, and a test Created 4 years, 7 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/last-execution-context.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/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 9c7e3de7c4a2c10900a3b061962ad7d3383e454f..58c70a5544f2f9ae7c61bdf43c778ad8a61c5809 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js
@@ -35,11 +35,12 @@ InspectorTest.createWorkspace = function(ignoreEvents)
InspectorTest._mockTargetId = 1;
-InspectorTest.createMockTarget = function(id, debuggerModelConstructor)
+InspectorTest.createMockTarget = function(id, debuggerModelConstructor, targetType)
{
var MockTarget = function(name, connection, callback)
{
- WebInspector.Target.call(this, InspectorTest.testTargetManager, name, WebInspector.Target.Type.Page, connection, null, callback);
+ var type = typeof targetType === "undefined" ? WebInspector.Target.Type.Page : targetType;
+ WebInspector.Target.call(this, InspectorTest.testTargetManager, name, type, connection, null, callback);
this.consoleModel = new WebInspector.ConsoleModel(this);
this.networkManager = new WebInspector.NetworkManager(this);
this.resourceTreeModel = new WebInspector.ResourceTreeModel(this);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698