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); |
+ expect(other.width, 15); |
+ expect(other.height, 15); |
+ }); |
}); |
} |