fix(test): Android browser does not support calc() a CSS unit value
Closes #5001
This commit is contained in:
parent
c4964e7c9b
commit
e37799a2a5
|
@ -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);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue