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

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

Issue 320933003: DevTools: Expand protocol to allow setting DOM event breakpoints on a given event target. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: skip test on mac 10.6 dbg 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
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);
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 var textEditor = sourceFrame._textEditor; 216 var textEditor = sourceFrame._textEditor;
217 for (var i = 0; i < textEditor.linesCount; ++i) 217 for (var i = 0; i < textEditor.linesCount; ++i)
218 InspectorTest.addResult(textEditor.line(i)); 218 InspectorTest.addResult(textEditor.line(i));
219 InspectorTest.addResult("==Source frame contents end=="); 219 InspectorTest.addResult("==Source frame contents end==");
220 }; 220 };
221 221
222 InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointId s, asyncStackTrace) 222 InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointId s, asyncStackTrace)
223 { 223 {
224 if (!InspectorTest._quiet) 224 if (!InspectorTest._quiet)
225 InspectorTest.addResult("Script execution paused."); 225 InspectorTest.addResult("Script execution paused.");
226 InspectorTest._pausedScriptArguments = [WebInspector.DebuggerModel.CallFrame .fromPayloadArray(WebInspector.targetManager.activeTarget(), callFrames), reason , breakpointIds, asyncStackTrace]; 226 InspectorTest._pausedScriptArguments = [WebInspector.DebuggerModel.CallFrame .fromPayloadArray(WebInspector.targetManager.activeTarget(), callFrames), reason , breakpointIds, asyncStackTrace, auxData];
227 if (InspectorTest._waitUntilPausedCallback) { 227 if (InspectorTest._waitUntilPausedCallback) {
228 var callback = InspectorTest._waitUntilPausedCallback; 228 var callback = InspectorTest._waitUntilPausedCallback;
229 delete InspectorTest._waitUntilPausedCallback; 229 delete InspectorTest._waitUntilPausedCallback;
230 callback.apply(callback, InspectorTest._pausedScriptArguments); 230 callback.apply(callback, InspectorTest._pausedScriptArguments);
231 } 231 }
232 }; 232 };
233 233
234 InspectorTest._resumedScript = function() 234 InspectorTest._resumedScript = function()
235 { 235 {
236 if (!InspectorTest._quiet) 236 if (!InspectorTest._quiet)
(...skipping 171 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/sources/debugger/event-listener-breakpoints.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698