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

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html

Issue 657063002: Show stack traces in console for unhandled promise rejection messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed debugger-pause-on-promise-rejection.html test Created 6 years, 2 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: LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html
diff --git a/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html b/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html
index a7420df5dbf95a89a4c56d5ef8425c9fd9399d3d..846d4698838876f8740ece3a4a3cad03c409b114 100644
--- a/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html
+++ b/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html
@@ -34,6 +34,14 @@ function runPromises(source)
reject(new Error(source + ".err2"));
}
+function runPromisesFromInspector()
+{
+ // setTimeout to cut off VM call frames from the stack trace.
+ setTimeout(function timeout() {
+ runPromises("inspector")
+ }, 0);
+}
+
function test()
{
InspectorTest.setQuiet(true);
@@ -47,7 +55,7 @@ function test()
function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
{
- InspectorTest.evaluateInPage("runPromises('inspector')", resumeExecution);
+ InspectorTest.evaluateInPage("runPromisesFromInspector()", resumeExecution);
}
function resumeExecution()

Powered by Google App Engine
This is Rietveld 408576698