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

Unified Diff: ui/webui/resources/js/load_time_data.js

Issue 414753004: Include the document URL in the load_time_data.js expectation failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/load_time_data.js
diff --git a/ui/webui/resources/js/load_time_data.js b/ui/webui/resources/js/load_time_data.js
index ee3d497d654cbc1d6729f96f83d5426039896992..33b388094bc5cbdd3af870c9eef9c531af814f29 100644
--- a/ui/webui/resources/js/load_time_data.js
+++ b/ui/webui/resources/js/load_time_data.js
@@ -118,8 +118,10 @@ var loadTimeData;
* @param {string} message The message to display if the check fails.
*/
function expect(condition, message) {
- if (!condition)
- console.error(message);
+ if (!condition) {
+ console.error('Unexpected condition on ' + document.location.href + ': ' +
+ message);
+ }
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698