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

Unified Diff: LayoutTests/inspector/sources/debugger/dynamic-script-tag.html

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
Index: LayoutTests/inspector/sources/debugger/dynamic-script-tag.html
diff --git a/LayoutTests/inspector/sources/debugger/dynamic-script-tag.html b/LayoutTests/inspector/sources/debugger/dynamic-script-tag.html
index 9903b5ccd808cf4393fcc542f510613142819258..2d248eaaaf96889431aa61738d51cade9a35170f 100644
--- a/LayoutTests/inspector/sources/debugger/dynamic-script-tag.html
+++ b/LayoutTests/inspector/sources/debugger/dynamic-script-tag.html
@@ -13,7 +13,7 @@ var test = function()
{
var consoleMessagesCount = 2;
- var messages = WebInspector.consoleModel.messages();
+ var messages = InspectorTest.consoleModel.messages();
for (var i = 0; i < messages.length; ++i)
processMessage(messages[i]);
checkWhenScriptsLoaded();
@@ -38,7 +38,7 @@ var test = function()
}
InspectorTest.addResult("Both dynamic scripts were loaded.");
- var scripts = Object.values(WebInspector.debuggerModel.scripts);
+ var scripts = Object.values(InspectorTest.debuggerModel.scripts);
function filterOutInlineAndStandaloneScripts(script)
{
@@ -52,7 +52,7 @@ var test = function()
function testOpenDevToolsThenReload(next)
{
- WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.ParsedScriptSource, scriptParsed);
+ InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.ParsedScriptSource, scriptParsed);
InspectorTest.addResult("Reloading page.");
InspectorTest.reloadPage(onPageReloaded);
@@ -71,7 +71,7 @@ var test = function()
// that the first one that has document url as a sourceURL is inline.
InspectorTest.addResult("The first script with document url as a sourceURL to be seen is " + (script.isInlineScript() ? "" : "not ") + "inline script.");
InspectorTest.assertTrue(script.isInlineScript(), "Only inline scripts should have document url as a sourceURL.");
- WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.ParsedScriptSource, scriptParsed);
+ InspectorTest.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.ParsedScriptSource, scriptParsed);
if (!--eventsCountBeforeNext)
next();
}

Powered by Google App Engine
This is Rietveld 408576698