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

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

Issue 443943002: DevTools: Fix framework blackboxing for exceptions thrown inside V8 internal scripts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed test Created 6 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 | 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 function Framework_bound(var_args) 103 function Framework_bound(var_args)
104 { 104 {
105 return func.apply(thisObject, args.concat(Array.prototype.slice.call(arg uments))); 105 return func.apply(thisObject, args.concat(Array.prototype.slice.call(arg uments)));
106 } 106 }
107 Framework_bound.toString = function() 107 Framework_bound.toString = function()
108 { 108 {
109 return "Framework_bound: " + func; 109 return "Framework_bound: " + func;
110 }; 110 };
111 return Framework_bound; 111 return Framework_bound;
112 } 112 }
113
114 Framework.throwInNative = function()
115 {
116 var wrongJson = "})";
117 window["dummy"] = JSON.parse(wrongJson);
118 }
119
120 Framework.throwInNativeAndCatch = function()
121 {
122 try {
123 Framework.throwInNative();
124 } catch(e) {
125 }
126 }
127
128 Framework.throwFrameworkExceptionAndCatch = function()
129 {
130 try {
131 Framework.throwFrameworkException();
132 } catch(e) {
133 }
134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698