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

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

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « LayoutTests/http/tests/inspector/console-test.js ('k') | LayoutTests/http/tests/inspector/elements-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/debugger-test.js
diff --git a/LayoutTests/http/tests/inspector/debugger-test.js b/LayoutTests/http/tests/inspector/debugger-test.js
index f14e0bc9f0b74b65c3b8d860a87ab5c87a8ba475..5d1a82a48d5cfc8dc545f4048655c56ecfbc76f5 100644
--- a/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/LayoutTests/http/tests/inspector/debugger-test.js
@@ -4,13 +4,13 @@ InspectorTest.preloadPanel("sources");
InspectorTest.startDebuggerTest = function(callback, quiet)
{
- console.assert(WebInspector.debuggerModel.debuggerEnabled(), "Debugger has to be enabled");
+ console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has to be enabled");
if (quiet !== undefined)
InspectorTest._quiet = quiet;
WebInspector.SourcesPanel.show();
- InspectorTest.addSniffer(WebInspector.debuggerModel, "_pausedScript", InspectorTest._pausedScript, true);
- InspectorTest.addSniffer(WebInspector.debuggerModel, "_resumedScript", InspectorTest._resumedScript, true);
+ InspectorTest.addSniffer(InspectorTest.debuggerModel, "_pausedScript", InspectorTest._pausedScript, true);
+ InspectorTest.addSniffer(InspectorTest.debuggerModel, "_resumedScript", InspectorTest._resumedScript, true);
InspectorTest.safeWrap(callback)();
};
@@ -253,7 +253,7 @@ InspectorTest.captureStackTraceIntoString = function(callFrames, asyncStackTrace
var printed = 0;
for (var i = 0; i < callFrames.length; i++) {
var frame = callFrames[i];
- var script = WebInspector.debuggerModel.scriptForId(frame.location().scriptId);
+ var script = InspectorTest.debuggerModel.scriptForId(frame.location().scriptId);
var isFramework = WebInspector.BlackboxSupport.isBlackboxedURL(script.sourceURL);
if (options.dropFrameworkCallFrames && isFramework)
continue;
@@ -464,8 +464,8 @@ InspectorTest.setQuiet = function(quiet)
InspectorTest.queryScripts = function(filter)
{
var scripts = [];
- for (var scriptId in WebInspector.debuggerModel._scripts) {
- var script = WebInspector.debuggerModel._scripts[scriptId];
+ for (var scriptId in InspectorTest.debuggerModel._scripts) {
+ var script = InspectorTest.debuggerModel._scripts[scriptId];
if (!filter || filter(script))
scripts.push(script);
}
« no previous file with comments | « LayoutTests/http/tests/inspector/console-test.js ('k') | LayoutTests/http/tests/inspector/elements-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698