Skip to content

Commit d5333b6

Browse files
committed
Fix tests on firefox.
1 parent 306f21d commit d5333b6

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
@@ -330,7 +330,7 @@ describe('MdSlider', () => {
330330
expect(tickContainerDimensions.width)
331331
.toBe(sliderDimensions.width - sliderDimensions.width * 6 / 8);
332332
expect(tickContainerElement.style.background)
333-
.toEqual(`repeating-linear-gradient(to right, black, black 2px, transparent 2px, ` +
333+
.toContain(`repeating-linear-gradient(to right, black, black 2px, transparent 2px, ` +
334334
`transparent ${sliderDimensions.width * 6 / 8 - 1}px)`);
335335
});
336336

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

0 commit comments

Comments
 (0)