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

Side by Side Diff: LayoutTests/http/tests/inspector/debugger-test.js

Issue 11876015: Merge 139416 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/inspector/debugger/debugger-scripts-reload.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/debugger/debugger-scripts-reload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698