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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.html

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: do not blackbox fs uiSourceCodes Created 4 years, 2 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
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/workspace-test.js"></script> 4 <script src="../../../http/tests/inspector/workspace-test.js"></script>
5 <script src="breakpoint-manager.js"></script> 5 <script src="breakpoint-manager.js"></script>
6 6
7 <script> 7 <script>
8 function test() 8 function test()
9 { 9 {
10 var mockTarget; 10 var mockTarget;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 var shiftingMapping = { 180 var shiftingMapping = {
181 rawLocationToUILocation: function(rawLocation) 181 rawLocationToUILocation: function(rawLocation)
182 { 182 {
183 if (this._disabled) 183 if (this._disabled)
184 return null; 184 return null;
185 return InspectorTest.uiSourceCodes[rawLocation.scriptId].uiL ocation(rawLocation.lineNumber + 10, 0); 185 return InspectorTest.uiSourceCodes[rawLocation.scriptId].uiL ocation(rawLocation.lineNumber + 10, 0);
186 }, 186 },
187 187
188 uiLocationToRawLocation: function(uiSourceCode, lineNumber) 188 uiLocationToRawLocation: function(uiSourceCode, lineNumber)
189 { 189 {
190 var networkURL = InspectorTest.testNetworkMapping.networkURL (uiSourceCode); 190 return new WebInspector.DebuggerModel.Location(mockTarget.de buggerModel, uiSourceCode.url(), lineNumber - 10, 0);
191 return new WebInspector.DebuggerModel.Location(mockTarget.de buggerModel, networkURL, lineNumber - 10, 0);
192 }, 191 },
193 192
194 isIdentity: function() 193 isIdentity: function()
195 { 194 {
196 return false; 195 return false;
197 } 196 }
198 }; 197 };
199 198
200 // Source mapping will shift everything 10 lines ahead so that break point 1 clashes with breakpoint 2. 199 // Source mapping will shift everything 10 lines ahead so that break point 1 clashes with breakpoint 2.
201 var serializedBreakpoints = []; 200 var serializedBreakpoints = [];
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 var mapping = { 252 var mapping = {
254 rawLocationToUILocation: function(rawLocation) 253 rawLocationToUILocation: function(rawLocation)
255 { 254 {
256 if (this._disabled) 255 if (this._disabled)
257 return null; 256 return null;
258 return uiSourceCodeB.uiLocation(rawLocation.lineNumber + 10, 0); 257 return uiSourceCodeB.uiLocation(rawLocation.lineNumber + 10, 0);
259 }, 258 },
260 259
261 uiLocationToRawLocation: function(uiSourceCode, lineNumber) 260 uiLocationToRawLocation: function(uiSourceCode, lineNumber)
262 { 261 {
263 var networkURL = InspectorTest.testNetworkMapping.networ kURL(uiSourceCodeA); 262 return new WebInspector.DebuggerModel.Location(mockTarge t.debuggerModel, uiSourceCodeA.url(), lineNumber - 10, 0);
264 return new WebInspector.DebuggerModel.Location(mockTarge t.debuggerModel, networkURL, lineNumber - 10, 0);
265 }, 263 },
266 264
267 isIdentity: function() 265 isIdentity: function()
268 { 266 {
269 return false; 267 return false;
270 } 268 }
271 }; 269 };
272 270
273 return mapping; 271 return mapping;
274 } 272 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 }; 342 };
345 </script> 343 </script>
346 344
347 </head> 345 </head>
348 346
349 <body onload="runTest()"> 347 <body onload="runTest()">
350 <p>Tests BreakpointManager class.</p> 348 <p>Tests BreakpointManager class.</p>
351 349
352 </body> 350 </body>
353 </html> 351 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698