From 4d117faf1ac61e225d4fcca53ba291a4a86d7cf1 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Thu, 3 Aug 2017 00:51:59 +0200 Subject: [PATCH] test(common): skip some DatePipe tests in old Chrome where Intl is buggy (#15784) --- packages/common/test/pipes/date_pipe_spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/common/test/pipes/date_pipe_spec.ts b/packages/common/test/pipes/date_pipe_spec.ts index 07a009d0dc..a4fb977011 100644 --- a/packages/common/test/pipes/date_pipe_spec.ts +++ b/packages/common/test/pipes/date_pipe_spec.ts @@ -124,9 +124,12 @@ export function main() { expectDateFormatAs(date, pattern, dateFixtures[pattern]); }); - Object.keys(isoStringWithoutTimeFixtures).forEach((pattern: string) => { - expectDateFormatAs(isoStringWithoutTime, pattern, isoStringWithoutTimeFixtures[pattern]); - }); + if (!browserDetection.isOldChrome) { + Object.keys(isoStringWithoutTimeFixtures).forEach((pattern: string) => { + expectDateFormatAs( + isoStringWithoutTime, pattern, isoStringWithoutTimeFixtures[pattern]); + }); + } expect(pipe.transform(date, 'Z')).toBeDefined(); });