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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
index 233a878c3cfca5c1609c20fab7c8a170ae3f4fe8..bc9ecc70f6c789a3ffaf30aa969da3d985c63549 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
@@ -43,21 +43,21 @@ InspectorTest.completeDebuggerTest = function()
Promise.prototype.then = function()
{
var result = origThen.apply(this, arguments);
- origThen.call(result, undefined, onUncaughtPromiseReject);
+ origThen.call(result, undefined, onUncaughtPromiseReject.bind(null, new Error().stack));
return result;
}
Promise.prototype.catch = function()
{
var result = origCatch.apply(this, arguments);
- origThen.call(result, undefined, onUncaughtPromiseReject);
+ origThen.call(result, undefined, onUncaughtPromiseReject.bind(null, new Error().stack));
return result;
}
- function onUncaughtPromiseReject(e)
+ function onUncaughtPromiseReject(stack, e)
{
var message = (typeof e === "object" && e.stack) || e;
- InspectorTest.addResult("FAIL: Uncaught exception in promise: " + message);
+ InspectorTest.addResult("FAIL: Uncaught exception in promise: " + message + " " + stack);
InspectorTest.completeDebuggerTest();
}
})();
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698