Skip to content

Commit

Permalink
Test framework helper function for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Apr 4, 2018
1 parent 226062f commit d734bcb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/boomerang-test-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,17 @@
}
};

/**
* Determines the user agent is Internet Explorer or not
*
* @returns {boolean} True if the user agent is Internet Explorer
*/
t.isIE = function() {
return window.navigator &&
(window.navigator.userAgent.indexOf("MSIE") !== -1 ||
window.navigator.appVersion.indexOf("Trident/") > 0);
};

window.BOOMR_test = t;

// force LOGN plugin not to run. Individual tests will override this if needed.
Expand Down

0 comments on commit d734bcb

Please sign in to comment.