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

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

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: review comments addressed Created 3 years, 9 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/debugger-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
index 8c754716cfad8e89f8fc6394e24a8bc881b86054..841e43be43ad086a90c68d9562b0b7813939667a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
@@ -347,7 +347,7 @@ InspectorTest.captureStackTraceIntoString = function(callFrames, asyncStackTrace
printCallFrames(callFrames, SDK.DebuggerModel.CallFrame.prototype.location, SDK.DebuggerModel.CallFrame.prototype.returnValue);
while (asyncStackTrace) {
results.push(" [" + (asyncStackTrace.description || "Async Call") + "]");
- var debuggerModel = SDK.DebuggerModel.fromTarget(SDK.targetManager.mainTarget());
+ var debuggerModel = InspectorTest.debuggerModel;
var printed = printCallFrames(asyncStackTrace.callFrames, runtimeCallFramePosition);
if (!printed)
results.pop();
@@ -369,7 +369,7 @@ InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointId
{
if (!InspectorTest._quiet)
InspectorTest.addResult("Script execution paused.");
- var debuggerModel = SDK.DebuggerModel.fromTarget(this.target());
+ var debuggerModel = this.target().model(SDK.DebuggerModel);
InspectorTest._pausedScriptArguments = [SDK.DebuggerModel.CallFrame.fromPayloadArray(debuggerModel, callFrames), reason, breakpointIds, asyncStackTrace, auxData];
if (InspectorTest._waitUntilPausedCallback) {
var callback = InspectorTest._waitUntilPausedCallback;
@@ -586,7 +586,7 @@ InspectorTest.queryScripts = function(filter)
InspectorTest.createScriptMock = function(url, startLine, startColumn, isContentScript, source, target, preRegisterCallback)
{
target = target || SDK.targetManager.mainTarget();
- var debuggerModel = SDK.DebuggerModel.fromTarget(target);
+ var debuggerModel = target.model(SDK.DebuggerModel);
var scriptId = ++InspectorTest._lastScriptId + "";
var lineCount = source.computeLineEndings().length;
var endLine = startLine + lineCount - 1;

Powered by Google App Engine
This is Rietveld 408576698