Commit fb83cf1a authored by kalman@chromium.org's avatar kalman@chromium.org

Include the document URL in the load_time_data.js expectation failures.

BUG=396752
R=estade@chromium.org

Review URL: https://codereview.chromium.org/414753004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285064 0039d316-1c4b-4281-b951-d872f2087c98
parent 9bfae688
......@@ -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);
}
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment