From e37799a2a58716257606f5570b69f08586b0fc13 Mon Sep 17 00:00:00 2001 From: mlaval Date: Thu, 29 Oct 2015 15:48:31 +0100 Subject: [PATCH] fix(test): Android browser does not support calc() a CSS unit value Closes #5001 --- .../angular2/test/core/compiler/shadow_css_spec.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/angular2/test/core/compiler/shadow_css_spec.ts b/modules/angular2/test/core/compiler/shadow_css_spec.ts index 48588eb937..4a25d8253c 100644 --- a/modules/angular2/test/core/compiler/shadow_css_spec.ts +++ b/modules/angular2/test/core/compiler/shadow_css_spec.ts @@ -165,10 +165,13 @@ export function main() { }); } - it('should leave calc() unchanged', () => { - var styleStr = 'a {height:calc(100% - 55px);}'; - var css = s(styleStr, 'a'); - expect(css).toEqual(styleStr); - }); + // Android browser does not support calc(), see http://caniuse.com/#feat=calc + if (!browserDetection.isAndroid) { + it('should leave calc() unchanged', () => { + var styleStr = 'a {height:calc(100% - 55px);}'; + var css = s(styleStr, 'a'); + expect(css).toEqual(styleStr); + }); + } }); }