| OLD | NEW |
| 1 var initialize_DebuggerTest = function() { | 1 var initialize_DebuggerTest = function() { |
| 2 | 2 |
| 3 InspectorTest.startDebuggerTest = function(callback, quiet) | 3 InspectorTest.startDebuggerTest = function(callback, quiet) |
| 4 { | 4 { |
| 5 if (quiet !== undefined) | 5 if (quiet !== undefined) |
| 6 InspectorTest._quiet = quiet; | 6 InspectorTest._quiet = quiet; |
| 7 WebInspector.showPanel("scripts"); | 7 WebInspector.showPanel("scripts"); |
| 8 | 8 |
| 9 if (WebInspector.debuggerModel.debuggerEnabled()) | 9 if (WebInspector.debuggerModel.debuggerEnabled()) |
| 10 startTest(); | 10 startTest(); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 InspectorTest.setQuiet = function(quiet) | 277 InspectorTest.setQuiet = function(quiet) |
| 278 { | 278 { |
| 279 InspectorTest._quiet = quiet; | 279 InspectorTest._quiet = quiet; |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 InspectorTest.queryScripts = function(filter) | 282 InspectorTest.queryScripts = function(filter) |
| 283 { | 283 { |
| 284 var scripts = []; | 284 var scripts = []; |
| 285 for (var scriptId in WebInspector.debuggerModel._scripts) { | 285 for (var scriptId in WebInspector.debuggerModel._scripts) { |
| 286 var script = WebInspector.debuggerModel._scripts[scriptId]; | 286 var script = WebInspector.debuggerModel._scripts[scriptId]; |
| 287 if (filter(script)) | 287 if (!filter || filter(script)) |
| 288 scripts.push(script); | 288 scripts.push(script); |
| 289 } | 289 } |
| 290 return scripts; | 290 return scripts; |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 InspectorTest.createScriptMock = function(url, startLine, startColumn, isContent
Script, source) | 293 InspectorTest.createScriptMock = function(url, startLine, startColumn, isContent
Script, source) |
| 294 { | 294 { |
| 295 var scriptId = ++InspectorTest._lastScriptId; | 295 var scriptId = ++InspectorTest._lastScriptId; |
| 296 var lineCount = source.lineEndings().length; | 296 var lineCount = source.lineEndings().length; |
| 297 var endLine = startLine + lineCount - 1; | 297 var endLine = startLine + lineCount - 1; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 InspectorTest.checkUILocation = function(uiSourceCode, lineNumber, columnNumber,
location) | 314 InspectorTest.checkUILocation = function(uiSourceCode, lineNumber, columnNumber,
location) |
| 315 { | 315 { |
| 316 InspectorTest.assertEquals(uiSourceCode, location.uiSourceCode, "Incorrect u
iSourceCode"); | 316 InspectorTest.assertEquals(uiSourceCode, location.uiSourceCode, "Incorrect u
iSourceCode"); |
| 317 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN
umber"); | 317 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN
umber"); |
| 318 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c
olumnNumber"); | 318 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c
olumnNumber"); |
| 319 }; | 319 }; |
| 320 | 320 |
| 321 }; | 321 }; |
| OLD | NEW |