Skip to content

Commit 1cbe4e0

Browse files
committed
Fix tests on firefox.
1 parent 37e6d1e commit 1cbe4e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/slider/slider.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ describe('MdSlider', () => {
329329
expect(tickContainerDimensions.width)
330330
.toBe(sliderDimensions.width - sliderDimensions.width * 6 / 8);
331331
expect(tickContainerElement.style.background)
332-
.toEqual(`repeating-linear-gradient(to right, black, black 2px, transparent 2px, ` +
332+
.toContain(`repeating-linear-gradient(to right, black, black 2px, transparent 2px, ` +
333333
`transparent ${sliderDimensions.width * 6 / 8 - 1}px)`);
334334
});
335335

@@ -347,7 +347,7 @@ describe('MdSlider', () => {
347347
expect(tickContainerDimensions.width)
348348
.toBe(sliderDimensions.width - sliderDimensions.width * 6 / 12);
349349
expect(tickContainerElement.style.background)
350-
.toEqual(`repeating-linear-gradient(to right, black, black 2px, transparent 2px, ` +
350+
.toContain(`repeating-linear-gradient(to right, black, black 2px, transparent 2px, ` +
351351
`transparent ${sliderDimensions.width * 6 / 12 - 1}px)`);
352352
});
353353
});

0 commit comments

Comments
 (0)