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

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

Issue 2651683005: [inspector] don't ignore uncaught exception if at least 1 frame isn't blackboxed (Closed)
Patch Set: 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
Index: test/inspector/debugger/framework-break.js
diff --git a/test/inspector/debugger/framework-break.js b/test/inspector/debugger/framework-break.js
index 44ae680a68d5c73a4feda52a75c788d56b56a48b..e6526c3efd6b3afaa205994c122a20f20e6ed193 100644
--- a/test/inspector/debugger/framework-break.js
+++ b/test/inspector/debugger/framework-break.js
@@ -98,11 +98,13 @@ InspectorTest.runTestSuite([
.then(() => InspectorTest.log('> all frames in framework:'))
.then(
() => Protocol.Runtime.evaluate(
- {expression: 'throwUncaughtError()//# sourceURL=framework.js'}))
+ {expression: 'setTimeout(\'throwUncaughtError()//# sourceURL=framework.js\', 0)//# sourceURL=framework.js'}))
.then(() => InspectorTest.log('> mixed, top frame in framework:'))
+ .then(() => Protocol.Runtime.evaluate({ expression: "new Promise(resolve => setTimeout(resolve, 0))", awaitPromise: true}))
.then(
() => Protocol.Runtime.evaluate(
- {expression: 'throwUncaughtError()//# sourceURL=user.js'}))
+ {expression: 'setTimeout(\'throwUncaughtError()//# sourceURL=user.js\', 0)'}))
+ .then(() => Protocol.Runtime.evaluate({ expression: "new Promise(resolve => setTimeout(resolve, 0))", awaitPromise: true}))
.then(() => Protocol.Debugger.setPauseOnExceptions({state: 'none'}))
.then(next);
},

Powered by Google App Engine
This is Rietveld 408576698