OLD | NEW |
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 | 4 |
5 <script> | 5 <script> |
6 | 6 |
7 function test() | 7 function test() |
8 { | 8 { |
9 var workspace; | 9 var workspace; |
10 var uiSourceCodes = {}; | 10 var uiSourceCodes = {}; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 this._sourceMapping = sourceMapping; | 88 this._sourceMapping = sourceMapping; |
89 this._breakpoints = {}; | 89 this._breakpoints = {}; |
90 } | 90 } |
91 | 91 |
92 DebuggerModelMock.prototype = { | 92 DebuggerModelMock.prototype = { |
93 target: function() | 93 target: function() |
94 { | 94 { |
95 return mockTarget; | 95 return mockTarget; |
96 }, | 96 }, |
97 | 97 |
| 98 debuggerEnabled: function() |
| 99 { |
| 100 return true; |
| 101 }, |
| 102 |
98 _addScript: function(scriptId, url) | 103 _addScript: function(scriptId, url) |
99 { | 104 { |
100 this._scripts[scriptId] = new WebInspector.Script(mockTarget, script
Id, url); | 105 this._scripts[scriptId] = new WebInspector.Script(mockTarget, script
Id, url); |
101 this._scripts[scriptId].pushSourceMapping(this._sourceMapping); | 106 this._scripts[scriptId].pushSourceMapping(this._sourceMapping); |
102 }, | 107 }, |
103 | 108 |
104 _scriptForURL: function(url) | 109 _scriptForURL: function(url) |
105 { | 110 { |
106 for (var scriptId in this._scripts) { | 111 for (var scriptId in this._scripts) { |
107 var script = this._scripts[scriptId]; | 112 var script = this._scripts[scriptId]; |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 | 794 |
790 </script> | 795 </script> |
791 | 796 |
792 </head> | 797 </head> |
793 | 798 |
794 <body onload="runTest()"> | 799 <body onload="runTest()"> |
795 <p>Tests BreakpointManager class.</p> | 800 <p>Tests BreakpointManager class.</p> |
796 | 801 |
797 </body> | 802 </body> |
798 </html> | 803 </html> |
OLD | NEW |