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

Unified Diff: LayoutTests/inspector/sources/debugger/resource-script-mapping.html

Issue 299443016: DevTools: Decouple debugger model from UI entities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge DebuggerScriptMapping into DebuggerWorkspaceBinding Created 6 years, 5 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/resource-script-mapping.html
diff --git a/LayoutTests/inspector/sources/debugger/resource-script-mapping.html b/LayoutTests/inspector/sources/debugger/resource-script-mapping.html
index be2ec0305ae1ef987201f6f0605c2e885874bbc7..14c1415477fe9da30976576d47209032afe33854 100644
--- a/LayoutTests/inspector/sources/debugger/resource-script-mapping.html
+++ b/LayoutTests/inspector/sources/debugger/resource-script-mapping.html
@@ -7,20 +7,21 @@
function test()
{
var defaultScriptMapping;
+ var target = WebInspector.debuggerModel.target();
+
function createResourceScriptMapping()
{
InspectorTest.createWorkspace();
- defaultScriptMapping = new WebInspector.DefaultScriptMapping(WebInspector.debuggerModel, InspectorTest.testWorkspace);
- var resourceScriptMapping = new WebInspector.ResourceScriptMapping(WebInspector.debuggerModel, InspectorTest.testWorkspace);
+ InspectorTest.testTargetManager.addTarget(target);
+ defaultScriptMapping = new WebInspector.DefaultScriptMapping(WebInspector.debuggerModel, InspectorTest.testWorkspace, InspectorTest.testDebuggerWorkspaceBinding);
+ var resourceScriptMapping = new WebInspector.ResourceScriptMapping(WebInspector.debuggerModel, InspectorTest.testWorkspace, InspectorTest.testDebuggerWorkspaceBinding);
return resourceScriptMapping;
}
- var target = WebInspector.debuggerModel.target();
-
function uiLocation(script, lineNumber, columnNumber)
{
var location = script.target().debuggerModel.createRawLocation(script, lineNumber, columnNumber);
- return WebInspector.debuggerWorkspaceBinding.rawLocationToUILocation(location);
+ return InspectorTest.testDebuggerWorkspaceBinding.rawLocationToUILocation(location);
}
function resetModels()

Powered by Google App Engine
This is Rietveld 408576698