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

Unified Diff: test/inspector/debugger/framework-break.js

Issue 2656743003: [inspector] take into account inlined frames in ::HasNonBlackboxedFrameOnStack (Closed)
Patch Set: little fix in test Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/debug.h ('k') | test/inspector/debugger/framework-break-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/framework-break.js
diff --git a/test/inspector/debugger/framework-break.js b/test/inspector/debugger/framework-break.js
index 5685e255b4bf384e6527327e4a223be12e686313..42cdcf76245ea695bd83bb5a5d8e70b5ddd815ce 100644
--- a/test/inspector/debugger/framework-break.js
+++ b/test/inspector/debugger/framework-break.js
@@ -59,12 +59,25 @@ function throwInlinedUncaughtError() {
inlinedWrapper();
}
+function syncDOMBreakpointWithInlinedUserFrame() {
+ function inlinedWrapper() {
+ userFunction();
+ }
+ %OptimizeFunctionOnNextCall(inlinedWrapper);
+ inlinedWrapper();
+}
+
//# sourceURL=framework.js`, 8, 26);
InspectorTest.addScript(`
function throwUserException() {
throw new Error();
}
+
+function userFunction() {
+ syncDOMBreakpoint();
+}
+
//# sourceURL=user.js`, 64, 26)
InspectorTest.setupScriptMap();
@@ -167,6 +180,13 @@ InspectorTest.runTestSuite([
.then(next);
},
+ function testSyncDOMBreakpointWithInlinedUserFrame(next) {
+ InspectorTest.log('> mixed, top frame in framework:');
+ Protocol.Runtime
+ .evaluate({expression: 'syncDOMBreakpointWithInlinedUserFrame()//# sourceURL=framework.js'})
+ .then(next);
+ },
+
function testAsyncDOMBreakpoint(next) {
schedulePauseOnNextStatement('', '');
InspectorTest.log('> all frames in framework:');
« no previous file with comments | « src/debug/debug.h ('k') | test/inspector/debugger/framework-break-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698