Skip to content

Commit

Permalink
test match media on ios 10 (#88)
Browse files Browse the repository at this point in the history
* test match media on ios 10

* test match media on ios 10

* add matchMedia addListener test

* remove ios test run again
  • Loading branch information
romainmenke authored Apr 20, 2020
1 parent bb260dd commit deb06cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core-web-tests/src/test_matchMedia.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
QUnit.test('matchMedia', assert => {
const mql = window.matchMedia('(max-width: 200px)');
assert.equal(mql.matches, false);

mql.addListener(() => {
console.log('listened');
});

assert.ok(true, 'it worked');
});

0 comments on commit deb06cd

Please sign in to comment.