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

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

Issue 2191183003: DevTools: extract model from DOMBreakpointsSidebarPane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 4 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
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, "setSt atus", setStatus); 182 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "setSt atus", 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(status) 188 function setStatus(status)
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target)); 595 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target));
591 threadsPane._onListItemClick(listItem); 596 threadsPane._onListItemClick(listItem);
592 } 597 }
593 598
594 InspectorTest.evaluateOnCurrentCallFrame = function(code) 599 InspectorTest.evaluateOnCurrentCallFrame = function(code)
595 { 600 {
596 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) ); 601 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) );
597 } 602 }
598 603
599 }; 604 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698