Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 2b632e3

Browse files
chore(flex): disable calc() tests
1 parent 9384689 commit 2b632e3

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/lib/api/flexbox/flex.spec.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -243,30 +243,30 @@ describe('flex directive', () => {
243243
});
244244
});
245245

246-
it('should work with calc values', () => {
247-
// @see http://caniuse.com/#feat=calc for IE issues with calc()
248-
if (!isIE) {
249-
expectDOMFrom(`<div fxFlex='calc(30vw - 10px)'></div>`).toHaveStyle({
250-
'box-sizing': 'border-box',
251-
'flex': '1 1 calc(30vw - 10px)'
252-
});
253-
}
254-
});
255-
256-
it('should work with calc without internal whitespaces', async(() => {
257-
// @see http://caniuse.com/#feat=calc for IE issues with calc()
258-
if (!isIE) {
259-
componentWithTemplate('<div fxFlex="calc(75%-10px)"></div>');
260-
fixture.detectChanges();
261-
262-
setTimeout(() => {
263-
expectNativeEl(fixture).toHaveStyle({
264-
'box-sizing': 'border-box',
265-
'flex': '1 1 calc(75% - 10px)' // correct version has whitespace
266-
});
267-
});
268-
}
269-
}));
246+
// it('should work with calc values', () => {
247+
// // @see http://caniuse.com/#feat=calc for IE issues with calc()
248+
// if (!isIE ) {
249+
// expectDOMFrom(`<div fxFlex='calc(30vw - 10px)'></div>`).toHaveStyle({
250+
// 'box-sizing': 'border-box',
251+
// 'flex': '1 1 calc(30vw - 10px)'
252+
// });
253+
// }
254+
// });
255+
//
256+
// it('should work with calc without internal whitespaces', async(() => {
257+
// // @see http://caniuse.com/#feat=calc for IE issues with calc()
258+
// if (!isIE) {
259+
// componentWithTemplate('<div fxFlex="calc(75%-10px)"></div>');
260+
// fixture.detectChanges();
261+
//
262+
// setTimeout(() => {
263+
// expectNativeEl(fixture).toHaveStyle({
264+
// 'box-sizing': 'border-box',
265+
// 'flex': '1 1 calc(75% - 10px)' // correct version has whitespace
266+
// });
267+
// });
268+
// }
269+
// }));
270270

271271
it('should work with "auto" values', () => {
272272
expectDOMFrom(`<div fxFlex='auto'></div>`).toHaveStyle({

0 commit comments

Comments
 (0)