Index: tests/html/canvas_pixel_array_type_alias_test.dart |
diff --git a/tests/html/canvas_pixel_array_type_alias_test.dart b/tests/html/canvas_pixel_array_type_alias_test.dart |
index 250824d86429d850a26052216f72b2ef5257525f..4389fa1e7b15c956ce677f970667d7e162b3a526 100644 |
--- a/tests/html/canvas_pixel_array_type_alias_test.dart |
+++ b/tests/html/canvas_pixel_array_type_alias_test.dart |
@@ -26,8 +26,8 @@ main() { |
useHtmlConfiguration(); |
test('CreateImageData', () { |
- ImageData image = context.createImageData(canvas.width, |
- canvas.height); |
+ ImageData image = context.createImageData(canvas.width.toDouble(), |
+ canvas.height.toDouble()); |
List<int> data = image.data; |
// It is legal for the dart2js compiler to believe the type of the native |
// ImageData.data and elides the check, so check the type explicitly: |