blob: 36d8b2e3df51c07cd8f89502b2c971cb11834a51 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
function runTest() {
// A valid PNG header with no additional data for an image.
let pngHeaderData = new Uint8Array([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00]);
let pngHeader = new File([pngHeaderData], '');
createImageBitmap(pngHeader, {resizeWidth: 1, resizeHeight: 1});
}
</script>
</head>
<body onload="runTest()">
<canvas id="test" width="1000" height="1000"></canvas>
PASSED (If this page did not crash.)
<pre id='console'></pre>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>