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

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

Issue 210243002: DevTools: [Frameworks] Bugfix: do StepOut in framework code after StepIn limit is up. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/skip-stack-frames-steps.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // A framework for testing.
2
3 var Framework = {};
4
5 Framework.safeRun = function(callback, onSuccess, onException, breakOnUncaught)
6 {
7 try {
8 callback();
9 if (onSuccess)
10 Framework.safeRun(onSuccess, undefined, onException, breakOnUncaught );
11 } catch (e) {
12 if (onException)
13 Framework.safeRun(onException, undefined, breakOnUncaught ? Framewor k.breakInFramework : undefined);
14 else if (breakOnUncaught)
15 Framework.breakInFramework();
16 }
17 }
18
19 Framework.throwFrameworkException = function(msg)
20 {
21 throw Error("FrameworkException" + (msg ? ": " + msg : ""));
22 }
23
24 Framework.breakInFramework = function()
25 {
26 debugger;
27 }
28
29 Framework.empty = function()
30 {
31 }
32
33 Framework.doSomeWork = function()
34 {
35 const numberOfSteps = 50;
36 for (var i = 0; i < numberOfSteps; ++i) {
37 if (window["dummy property should not exist!" + i]) // Prevent optimizat ions.
38 return i;
39 Framework.safeRun(Framework.empty, Framework.empty, Framework.empty, tru e);
40 }
41 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/skip-stack-frames-steps.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698