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

Unified Diff: LayoutTests/http/tests/inspector/resource-tree/resource-tree-events.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/http/tests/inspector/resource-tree/resource-tree-events.html
diff --git a/LayoutTests/http/tests/inspector/resource-tree/resource-tree-events.html b/LayoutTests/http/tests/inspector/resource-tree/resource-tree-events.html
index 9603957702386c699c1a04eb62c4305b8da63f09..b7b8d0331ef248f54541b6cf9345414c642a8884 100644
--- a/LayoutTests/http/tests/inspector/resource-tree/resource-tree-events.html
+++ b/LayoutTests/http/tests/inspector/resource-tree/resource-tree-events.html
@@ -13,10 +13,10 @@ function test()
function step1()
{
// Reset resourceTreeModel.
- WebInspector.resourceTreeModel.mainFrame._remove();
+ InspectorTest.resourceTreeModel.mainFrame._remove();
for (var eventName in WebInspector.ResourceTreeModel.EventTypes)
- WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes[eventName], eventHandler.bind(this, eventName));
+ InspectorTest.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes[eventName], eventHandler.bind(this, eventName));
function eventHandler(eventName, event)
{
@@ -43,21 +43,21 @@ function test()
// Simulate navigation to new render view: do not attach root frame.
InspectorTest.addResult("Navigating root frame");
- WebInspector.resourceTreeModel._frameNavigated(createFramePayload("root1"));
+ InspectorTest.resourceTreeModel._frameNavigated(createFramePayload("root1"));
InspectorTest.addResult("Navigating child frame 1");
- WebInspector.resourceTreeModel._frameAttached("child1", "root1");
- WebInspector.resourceTreeModel._frameNavigated(createFramePayload("child1", "root1"));
+ InspectorTest.resourceTreeModel._frameAttached("child1", "root1");
+ InspectorTest.resourceTreeModel._frameNavigated(createFramePayload("child1", "root1"));
InspectorTest.addResult("Navigating child frame 1 to a different URL");
- WebInspector.resourceTreeModel._frameNavigated(createFramePayload("child1", "root1", "child1-new"));
+ InspectorTest.resourceTreeModel._frameNavigated(createFramePayload("child1", "root1", "child1-new"));
InspectorTest.addResult("Navigating child frame 2");
- WebInspector.resourceTreeModel._frameAttached("child2", "root1");
- WebInspector.resourceTreeModel._frameNavigated(createFramePayload("child2", "root1"));
+ InspectorTest.resourceTreeModel._frameAttached("child2", "root1");
+ InspectorTest.resourceTreeModel._frameNavigated(createFramePayload("child2", "root1"));
InspectorTest.addResult("Detaching child frame 1");
- WebInspector.resourceTreeModel._frameDetached("child1");
+ InspectorTest.resourceTreeModel._frameDetached("child1");
InspectorTest.addResult("Navigating root frame");
- WebInspector.resourceTreeModel._frameAttached("root2");
- WebInspector.resourceTreeModel._frameNavigated(createFramePayload("root2"));
+ InspectorTest.resourceTreeModel._frameAttached("root2");
+ InspectorTest.resourceTreeModel._frameNavigated(createFramePayload("root2"));
InspectorTest.completeTest();
}

Powered by Google App Engine
This is Rietveld 408576698