fix(test): Android browser does not support calc() a CSS unit value

Closes #5001
This commit is contained in:
mlaval 2015-10-29 15:48:31 +01:00 committed by Marc Laval
parent c4964e7c9b
commit e37799a2a5
1 changed files with 8 additions and 5 deletions

View File

@ -165,10 +165,13 @@ export function main() {
}); });
} }
it('should leave calc() unchanged', () => { // Android browser does not support calc(), see http://caniuse.com/#feat=calc
var styleStr = 'a {height:calc(100% - 55px);}'; if (!browserDetection.isAndroid) {
var css = s(styleStr, 'a'); it('should leave calc() unchanged', () => {
expect(css).toEqual(styleStr); var styleStr = 'a {height:calc(100% - 55px);}';
}); var css = s(styleStr, 'a');
expect(css).toEqual(styleStr);
});
}
}); });
} }