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

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

Issue 2255983002: DevTools: refactor and fix bugs for DOMBreakpointsSidebarPane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address CL feedback Created 4 years, 3 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 | third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/dom-breakpoints.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 function scheduleTestFunction() 1 function scheduleTestFunction()
2 { 2 {
3 setTimeout(testFunction, 0); 3 setTimeout(testFunction, 0);
4 } 4 }
5 5
6 var initialize_DebuggerTest = function() { 6 var initialize_DebuggerTest = function() {
7 7
8 InspectorTest.preloadPanel("sources"); 8 InspectorTest.preloadPanel("sources");
9 9
10 InspectorTest.startDebuggerTest = function(callback, quiet) 10 InspectorTest.startDebuggerTest = function(callback, quiet)
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 InspectorTest._waitUntilResumedCallback = callback; 164 InspectorTest._waitUntilResumedCallback = callback;
165 }; 165 };
166 166
167 InspectorTest.resumeExecution = function(callback) 167 InspectorTest.resumeExecution = function(callback)
168 { 168 {
169 if (WebInspector.panels.sources.paused()) 169 if (WebInspector.panels.sources.paused())
170 WebInspector.panels.sources._togglePause(); 170 WebInspector.panels.sources._togglePause();
171 InspectorTest.waitUntilResumed(callback); 171 InspectorTest.waitUntilResumed(callback);
172 }; 172 };
173 173
174 InspectorTest.assertNotPaused = function()
175 {
176 InspectorTest.assertEquals(false, WebInspector.panels.sources.paused(), "Ass ert execution is not paused");
177 };
178
174 InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options) 179 InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options)
175 { 180 {
176 InspectorTest.waitUntilPaused(paused); 181 InspectorTest.waitUntilPaused(paused);
177 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "_upda teStatusMessage", setStatus); 182 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "_upda teStatusMessage", setStatus);
178 183
179 var caption; 184 var caption;
180 var callFrames; 185 var callFrames;
181 var asyncStackTrace; 186 var asyncStackTrace;
182 187
183 function setStatus() 188 function setStatus()
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target)); 592 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target));
588 threadsPane._onListItemClick(listItem); 593 threadsPane._onListItemClick(listItem);
589 } 594 }
590 595
591 InspectorTest.evaluateOnCurrentCallFrame = function(code) 596 InspectorTest.evaluateOnCurrentCallFrame = function(code)
592 { 597 {
593 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) ); 598 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) );
594 } 599 }
595 600
596 }; 601 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/dom-breakpoints.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698