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

Unified Diff: LayoutTests/http/tests/inspector/appcache/appcache-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
Index: LayoutTests/http/tests/inspector/appcache/appcache-test.js
diff --git a/LayoutTests/http/tests/inspector/appcache/appcache-test.js b/LayoutTests/http/tests/inspector/appcache/appcache-test.js
index 36e5577e79e01b0464b45a60f764df8f1a6f4169..bad0ddde597a692c90fb546304af519fa33ddad4 100644
--- a/LayoutTests/http/tests/inspector/appcache/appcache-test.js
+++ b/LayoutTests/http/tests/inspector/appcache/appcache-test.js
@@ -42,7 +42,7 @@ InspectorTest.createAndNavigateIFrame = function(url, callback)
InspectorTest.navigateIFrame = function(frameId, url, callback)
{
- var frame = WebInspector.resourceTreeModel.frameForId(frameId)
+ var frame = InspectorTest.resourceTreeModel.frameForId(frameId)
InspectorTest.evaluateInPage("navigateIFrame(unescape('" + escape(frame.name) +"'), unescape('" + escape(url) + "'))");
InspectorTest.addSniffer(WebInspector.ResourceTreeModel.prototype, "_frameNavigated", frameNavigated);
@@ -54,7 +54,7 @@ InspectorTest.navigateIFrame = function(frameId, url, callback)
InspectorTest.removeIFrame = function(frameId, callback)
{
- var frame = WebInspector.resourceTreeModel.frameForId(frameId)
+ var frame = InspectorTest.resourceTreeModel.frameForId(frameId)
InspectorTest.evaluateInPage("removeIFrame(unescape('" + escape(frame.name) +"'))");
InspectorTest.addSniffer(WebInspector.ResourceTreeModel.prototype, "_frameDetached", frameDetached);
@@ -66,7 +66,7 @@ InspectorTest.removeIFrame = function(frameId, callback)
InspectorTest.swapFrameCache = function(frameId)
{
- var frame = WebInspector.resourceTreeModel.frameForId(frameId);
+ var frame = InspectorTest.resourceTreeModel.frameForId(frameId);
InspectorTest.evaluateInPage("swapFrameCache(unescape('" + escape(frame.name) +"'))");
}
@@ -104,7 +104,7 @@ InspectorTest.frameIdToString = function(frameId)
{
if (!InspectorTest.framesByFrameId)
InspectorTest.framesByFrameId = {};
- var frame = WebInspector.resourceTreeModel.frameForId(frameId);
+ var frame = InspectorTest.resourceTreeModel.frameForId(frameId);
if (!frame)
frame = InspectorTest.framesByFrameId[frameId];
InspectorTest.framesByFrameId[frameId] = frame;

Powered by Google App Engine
This is Rietveld 408576698