Skip to content

Commit 9bfd10b

Browse files
committed
test(cdk/layout): fix test failure
Fixes a test failure that seems to have snuck into master because of #23571.
1 parent 505c0d1 commit 9bfd10b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdk/layout/media-matcher.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ describe('MediaMatcher', () => {
2121
expect(mediaMatcher.matchMedia('(max-width: 1px)').matches).toBeFalsy();
2222
});
2323

24-
it('should add CSS rules for provided queries when the platform is webkit',
24+
it('should add CSS rules for provided queries when the platform is webkit or blink',
2525
inject([Platform], (platform: Platform) => {
2626
const randomWidth = `${Math.random()}px`;
2727

2828
expect(getStyleTagByString(randomWidth)).toBeFalsy();
2929
mediaMatcher.matchMedia(`(width: ${randomWidth})`);
3030

31-
if (platform.WEBKIT) {
31+
if (platform.WEBKIT || platform.BLINK) {
3232
expect(getStyleTagByString(randomWidth)).toBeTruthy();
3333
} else {
3434
expect(getStyleTagByString(randomWidth)).toBeFalsy();

0 commit comments

Comments
 (0)