test(compiler): test schema generation only in Chrome

Closes #8581
This commit is contained in:
Marc Laval
2016-05-10 17:47:17 -07:00
parent d537a26297
commit 61b339678d
3 changed files with 47 additions and 22 deletions

View File

@ -43,6 +43,10 @@ export class BrowserDetection {
get supportsIntlApi(): boolean {
return this._ua.indexOf('Chrome/4') > -1 && this._ua.indexOf('Edge') == -1;
}
get isChromeDesktop(): boolean {
return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Mobile Safari') == -1 && this._ua.indexOf('Edge') == -1;
}
}
export function dispatchEvent(element, eventType): void {