blob: 8d485e3cfa3614923e2bcb7b0f2e42b4364a1544 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
description("Test the maximum ImageBitmap sizes of Cairo port");
onload = async () => {
var data = new ImageData(32768, 1);
imageBitmap = await createImageBitmap(data, { resizeWidth: 1 });
shouldBe("imageBitmap.width", "1");
data = new ImageData(1, 32769);
imageBitmap = await createImageBitmap(data, { resizeWidth: 1 });
shouldBe("imageBitmap.width", "1");
data = new ImageData(1, 32768);
imageBitmap = await createImageBitmap(data, { resizeHeight: 1 });
shouldBe("imageBitmap.height", "1");
data = new ImageData(1, 32769);
imageBitmap = await createImageBitmap(data, { resizeHeight: 1 });
shouldBe("imageBitmap.height", "1");
}
</script>
</head>
</html>