Skip to content

Commit

Permalink
instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yurydelendik committed Mar 23, 2016
1 parent 66bc26e commit 7cf0e75
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ 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);
};

window.onunhandledrejection = function(event) {
self._info('Promise rejection: ' + event.reason);
};

this._info('User agent: ' + navigator.userAgent);
this._log('Harness thinks this browser is "' + this.browser +
'" with path "' + this.appPath + '"\n');
Expand Down

0 comments on commit 7cf0e75

Please sign in to comment.