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

Side by Side Diff: LayoutTests/inspector/sources/debugger/file-system-project-mapping.html

Issue 485713002: DevTools: Use targetManager.inspectedPageUrl() instead of resourceTreeModel.inspectedPageUrl() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addrss comments Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/workspace-test.js"></script> 5 <script src="../../../http/tests/inspector/workspace-test.js"></script>
6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script > 6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script >
7 <script src="../../../http/tests/inspector/live-edit-test.js"></script> 7 <script src="../../../http/tests/inspector/live-edit-test.js"></script>
8 <script src="resources/edit-me.js"></script> 8 <script src="resources/edit-me.js"></script>
9 <script> 9 <script>
10 function test() 10 function test()
11 { 11 {
12 var mockTargetId = 1; 12 var mockTargetId = 1;
13 var MockTarget = function(name, connection, callback) 13 var MockTarget = function(name, connection, callback)
14 { 14 {
15 WebInspector.Target.call(this, name, connection, callback); 15 WebInspector.Target.call(this, name, connection, callback);
16 } 16 }
17 MockTarget.prototype = { 17 MockTarget.prototype = {
18 _loadedWithCapabilities: function(callback) 18 _loadedWithCapabilities: function(callback)
19 { 19 {
20 this.resourceTreeModel = new WebInspector.Object();
20 this.debuggerModel = new WebInspector.DebuggerModel(this); 21 this.debuggerModel = new WebInspector.DebuggerModel(this);
21 this.runtimeModel = WebInspector.targetManager.mainTarget().runtimeM odel; 22 this.runtimeModel = WebInspector.targetManager.mainTarget().runtimeM odel;
22 this.consoleModel = WebInspector.targetManager.mainTarget().consoleM odel; 23 this.consoleModel = WebInspector.targetManager.mainTarget().consoleM odel;
23 24
24 if (callback) 25 if (callback)
25 callback(); 26 callback();
26 }, 27 },
27 28
28 __proto__: WebInspector.Target.prototype 29 __proto__: WebInspector.Target.prototype
29 } 30 }
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } 466 }
466 }, 467 },
467 ]); 468 ]);
468 }; 469 };
469 </script> 470 </script>
470 </head> 471 </head>
471 <body onload="runTest()"> 472 <body onload="runTest()">
472 <p>Tests file system project mappings.</p> 473 <p>Tests file system project mappings.</p>
473 </body> 474 </body>
474 </html> 475 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/sources/debugger/breakpoint-manager.js ('k') | Source/devtools/front_end/bindings/ResourceUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698