blob: 4b90b5a91fd61d7da57c8de494781ad0f48845e7 [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
const queries = [];
queries.push(window.matchMedia("screen"));
queries.push(window.matchMedia("screen"));
queries[0].addListener(() => {
for (let i = 0; i < 20; ++i)
queries.push(window.matchMedia("screen"))
requestAnimationFrame(() => testRunner.notifyDone());
});
window.internals.settings.setMediaTypeOverride("handheld");
</script>
This test passes if it doesn't crash.