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:'); |