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

Side by Side Diff: LayoutTests/inspector/sources/debugger/resources/framework.js

Issue 732593002: DevTools: Make StepInto work across script boundaries and Blink process tasks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 1 month 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 // A framework for testing. 1 // A framework for testing.
2 2
3 var Framework = {}; 3 var Framework = {};
4 4
5 Framework.safeRun = function(callback, onSuccess, onException, breakOnUncaught) 5 Framework.safeRun = function(callback, onSuccess, onException, breakOnUncaught)
6 { 6 {
7 try { 7 try {
8 callback(); 8 callback();
9 if (onSuccess) 9 if (onSuccess)
10 Framework.safeRun(onSuccess, undefined, onException, breakOnUncaught ); 10 Framework.safeRun(onSuccess, undefined, onException, breakOnUncaught );
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 } 126 }
127 127
128 Framework.throwFrameworkExceptionAndCatch = function() 128 Framework.throwFrameworkExceptionAndCatch = function()
129 { 129 {
130 try { 130 try {
131 Framework.throwFrameworkException(); 131 Framework.throwFrameworkException();
132 } catch(e) { 132 } catch(e) {
133 } 133 }
134 } 134 }
135
136 Framework.scheduleUntilDone = function(callback, delay)
137 {
138 Framework.schedule(Framework_scheduleUntilDone, delay);
139
140 function Framework_scheduleUntilDone()
141 {
142 if (callback && callback())
143 return;
144 Framework.schedule(Framework_scheduleUntilDone, delay);
145 }
146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698