blob: 0080862341c80172c5ad40fa5c3273e9952ceb94 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Tests that ImageData contains a Uint8ClampedArray.");
var canvas = document.createElement("canvas");
canvas.width = 10;
canvas.height = 10;
var context = canvas.getContext("2d");
var imageData = context.getImageData(0, 0, 1, 1);
shouldBe('imageData.data.constructor', 'Uint8ClampedArray');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>