test(DatePipe): fixes

This commit is contained in:
Victor Berchet
2016-06-17 15:34:39 -07:00
parent 76a418760e
commit 40f8a45b95
3 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
import {getDOM} from '../src/dom/dom_adapter';
import {ListWrapper} from '../src/facade/collection';
import {RegExp, RegExpWrapper, StringWrapper, isPresent, isString, global} from '../src/facade/lang';
import {RegExp, RegExpWrapper, StringWrapper, global, isPresent, isString} from '../src/facade/lang';
export class BrowserDetection {
private _overrideUa: string;
@ -40,9 +40,7 @@ export class BrowserDetection {
// The Intl API is only properly supported in recent Chrome and Opera.
// Note: Edge is disguised as Chrome 42, so checking the "Edge" part is needed,
// see https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx
get supportsIntlApi(): boolean {
return !!(<any>global).Intl;
}
get supportsIntlApi(): boolean { return !!(<any>global).Intl; }
get isChromeDesktop(): boolean {
return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Mobile Safari') == -1 &&