Chromium Code Reviews| Index: tests/html/canvasrenderingcontext2d_test.dart |
| diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart |
| index 4c32b8366ff6412a01a015bfc34c1f36a771a4b9..26be2f35ce7106ace1b9fa4467d87413c2a57545 100644 |
| --- a/tests/html/canvasrenderingcontext2d_test.dart |
| +++ b/tests/html/canvasrenderingcontext2d_test.dart |
| @@ -530,5 +530,15 @@ main() { |
| expectPixelUnfilled(0, 0); |
| expectPixelUnfilled(80, 80); |
| }); |
| + |
| + test('createImageData', () { |
| + var imageData = context.createImageData(15, 15); |
| + expect(imageData.width, 15); |
| + expect(imageData.height, 15); |
| + |
| + var other = context.createImageDataFromData(imageData); |
|
Andrei Mouravski
2013/03/20 22:42:08
I'd love to see this actually checking the data.
blois
2013/03/20 22:47:56
The data should be all 0 in all cases- critical po
Andrei Mouravski
2013/03/20 22:50:19
I guess the part I'd like to see is make an imageD
|
| + expect(other.width, 15); |
| + expect(other.height, 15); |
| + }); |
| }); |
| } |