Log uncaught global errors.

This commit is contained in:
Brendan Dahl 2016-03-22 15:49:32 -07:00
parent 54ee15d866
commit fb47490648

View File

@ -281,7 +281,10 @@ var Driver = (function DriverClosure() {
run: function Driver_run() {
var self = this;
window.onerror = function(message, source, line, column, error) {
self._info('Error: ' + message + ' Script: ' + source + ' Line: ' +
line + ' Column: ' + column + ' StackTrace: ' + error);
};
this._info('User agent: ' + navigator.userAgent);
this._log('Harness thinks this browser is "' + this.browser +
'" with path "' + this.appPath + '"\n');