4 <script src=
"../../resources/js-test.js"></script>
8 description("Tests that ImageData contains a Uint8ClampedArray.");
10 var canvas
= document
.createElement("canvas");
13 var context
= canvas
.getContext("2d");
15 var imageData
= context
.getImageData(0, 0, 1, 1);
16 shouldBe('imageData.data.constructor', 'Uint8ClampedArray');