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

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

Issue 350153004: DevTools: Activate breakpoints in breakpointManager (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address vsevik's comment Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-breakpoints-not-activated-on-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 console.assert(WebInspector.debuggerModel.debuggerEnabled(), "Debugger has t o be enabled"); 5 console.assert(WebInspector.debuggerModel.debuggerEnabled(), "Debugger has t o be enabled");
6 if (quiet !== undefined) 6 if (quiet !== undefined)
7 InspectorTest._quiet = quiet; 7 InspectorTest._quiet = quiet;
8 WebInspector.inspectorView.showPanel("sources"); 8 WebInspector.inspectorView.showPanel("sources");
9 9
10 InspectorTest.addSniffer(WebInspector.debuggerModel, "_pausedScript", Inspec torTest._pausedScript, true); 10 InspectorTest.addSniffer(WebInspector.debuggerModel, "_pausedScript", Inspec torTest._pausedScript, true);
11 InspectorTest.addSniffer(WebInspector.debuggerModel, "_resumedScript", Inspe ctorTest._resumedScript, true); 11 InspectorTest.addSniffer(WebInspector.debuggerModel, "_resumedScript", Inspe ctorTest._resumedScript, true);
12 InspectorTest.safeWrap(callback)(); 12 InspectorTest.safeWrap(callback)();
13 }; 13 };
14 14
15 InspectorTest.completeDebuggerTest = function() 15 InspectorTest.completeDebuggerTest = function()
16 { 16 {
17 WebInspector.debuggerModel.setBreakpointsActive(true); 17 WebInspector.breakpointManager.setBreakpointsActive(true);
18 InspectorTest.resumeExecution(InspectorTest.completeTest.bind(InspectorTest) ); 18 InspectorTest.resumeExecution(InspectorTest.completeTest.bind(InspectorTest) );
19 }; 19 };
20 20
21 InspectorTest.runDebuggerTestSuite = function(testSuite) 21 InspectorTest.runDebuggerTestSuite = function(testSuite)
22 { 22 {
23 var testSuiteTests = testSuite.slice(); 23 var testSuiteTests = testSuite.slice();
24 24
25 function runner() 25 function runner()
26 { 26 {
27 if (!testSuiteTests.length) { 27 if (!testSuiteTests.length) {
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 InspectorTest.scriptFormatter = function() 408 InspectorTest.scriptFormatter = function()
409 { 409 {
410 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source sView.EditorAction); 410 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source sView.EditorAction);
411 for (var i = 0; i < editorActions.length; ++i) { 411 for (var i = 0; i < editorActions.length; ++i) {
412 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction ) 412 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction )
413 return editorActions[i]; 413 return editorActions[i];
414 } 414 }
415 }; 415 };
416 416
417 }; 417 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-breakpoints-not-activated-on-reload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698