chore(build): add Firefox to CI

This commit is contained in:
Marc Laval
2015-08-19 16:47:18 +02:00
parent 49997ca932
commit 1c9be9b5aa
3 changed files with 15 additions and 2 deletions

View File

@ -92,3 +92,8 @@ export function stringifyElement(el): string {
export function supportsIntlApi(): boolean {
return DOM.getUserAgent().indexOf('Chrome') > -1 && DOM.getUserAgent().indexOf('Edge') == -1;
}
// TODO(mlaval): extract all browser detection checks from all tests
export function isFirefox(): boolean {
return DOM.getUserAgent().indexOf("Firefox") > -1;
}