Add a test

This commit is contained in:
Pavel Potocek 2017-01-17 22:45:22 +01:00
parent 0d9b4e858c
commit 8ae9bcd472
2 changed files with 19 additions and 0 deletions

View file

@ -8576,6 +8576,12 @@
"url": "/_mozilla/mozilla/localeCompare.html"
}
],
"mozilla/media_query_list_gc.html": [
{
"path": "mozilla/media_query_list_gc.html",
"url": "/_mozilla/mozilla/media_query_list_gc.html"
}
],
"mozilla/mime_sniffing_font_context.html": [
{
"path": "mozilla/mime_sniffing_font_context.html",

View file

@ -0,0 +1,13 @@
<!doctype html>
<meta charset="utf-8">
<title>Should not crash on the resize</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
var mql = matchMedia("(min-width: 1000px)");
mql = null;
gc();
window.resizeBy(1,1);
})
</script>