Skip to content

Commit e37799a

Browse files
committed
fix(test): Android browser does not support calc() a CSS unit value
Closes angular#5001
1 parent c4964e7 commit e37799a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

modules/angular2/test/core/compiler/shadow_css_spec.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,13 @@ export function main() {
165165
});
166166
}
167167

168-
it('should leave calc() unchanged', () => {
169-
var styleStr = 'a {height:calc(100% - 55px);}';
170-
var css = s(styleStr, 'a');
171-
expect(css).toEqual(styleStr);
172-
});
168+
// Android browser does not support calc(), see http://caniuse.com/#feat=calc
169+
if (!browserDetection.isAndroid) {
170+
it('should leave calc() unchanged', () => {
171+
var styleStr = 'a {height:calc(100% - 55px);}';
172+
var css = s(styleStr, 'a');
173+
expect(css).toEqual(styleStr);
174+
});
175+
}
173176
});
174177
}

0 commit comments

Comments
 (0)