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

Unified Diff: LayoutTests/http/tests/inspector/elements-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/elements-test.js
diff --git a/LayoutTests/http/tests/inspector/elements-test.js b/LayoutTests/http/tests/inspector/elements-test.js
index d1f7c69f6328acf967234678004b91e6a31ff6fd..16e19cb71c54a8787ceabde111b9ab17667195e6 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -67,7 +67,7 @@ InspectorTest.findNode = function(matchFunction, callback)
callback(null);
}
- WebInspector.domModel.requestDocument(documentRequested.bind(this));
+ InspectorTest.domModel.requestDocument(documentRequested.bind(this));
function documentRequested(doc)
{
pendingRequests++;
@@ -86,16 +86,16 @@ InspectorTest.nodeWithId = function(idValue, callback)
InspectorTest.querySelector = function(selector, callback)
{
- WebInspector.domModel.requestDocument(documentRequested.bind(this));
+ InspectorTest.domModel.requestDocument(documentRequested.bind(this));
function documentRequested(doc)
{
- WebInspector.domModel.querySelector(doc.id, selector, nodeSelected);
+ InspectorTest.domModel.querySelector(doc.id, selector, nodeSelected);
}
function nodeSelected(nodeId)
{
- callback(WebInspector.domModel.nodeForId(nodeId));
+ callback(InspectorTest.domModel.nodeForId(nodeId));
}
}
@@ -639,7 +639,7 @@ InspectorTest.expandElementsTree = function(callback)
InspectorTest.dumpDOMAgentTree = function(node)
{
- if (!WebInspector.domModel._document)
+ if (!InspectorTest.domModel._document)
return;
function dump(node, prefix)
@@ -691,7 +691,7 @@ InspectorTest.generateUndoTest = function(testBody)
InspectorTest.addResult("== Expanded: ==");
InspectorTest.dumpElementsTree(testNode);
}
- WebInspector.domModel.undo(redo);
+ InspectorTest.domModel.undo(redo);
}
}
@@ -707,7 +707,7 @@ InspectorTest.generateUndoTest = function(testBody)
InspectorTest.addResult("== Expanded: ==");
InspectorTest.dumpElementsTree(testNode);
}
- WebInspector.domModel.redo(done);
+ InspectorTest.domModel.redo(done);
}
}

Powered by Google App Engine
This is Rietveld 408576698