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

Unified Diff: third_party/WebKit/Source/devtools/front_end/Tests.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing the code review comments 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/Source/devtools/front_end/Tests.js
diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js
index 268f62c932c955791f0e865e38a48117adb0d2ee..dc24bae8926ee652146f6343a8eb2d01b7d78ce0 100644
--- a/third_party/WebKit/Source/devtools/front_end/Tests.js
+++ b/third_party/WebKit/Source/devtools/front_end/Tests.js
@@ -608,7 +608,7 @@ TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function()
function callback()
{
- var target = WebInspector.targetManager.targetsWithJSContext()[0];
+ var target = WebInspector.targetManager.targets(WebInspector.Target.Capability.JS)[0];
target._connection.deprecatedRunAfterPendingDispatches(this.releaseControl.bind(this));
}
};
@@ -620,7 +620,7 @@ TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function()
function callback()
{
- var target = WebInspector.targetManager.targetsWithJSContext()[0];
+ var target = WebInspector.targetManager.targets(WebInspector.Target.Capability.JS)[0];
var debuggerModel = WebInspector.DebuggerModel.fromTarget(target);
if (debuggerModel.isPaused()) {
this.releaseControl();

Powered by Google App Engine
This is Rietveld 408576698