Index: tests/html/instance_of_test.dart |
diff --git a/tests/html/instance_of_test.dart b/tests/html/instance_of_test.dart |
index 6de9f18169147e796c1c126495352d23d53fa769..2d382c53163b9d84422ccc434ea3dde3b1db46f7 100644 |
--- a/tests/html/instance_of_test.dart |
+++ b/tests/html/instance_of_test.dart |
@@ -29,7 +29,8 @@ main() { |
// Expect.isFalse(context is CanvasPixelArray); |
// FIXME(b/5286633): Interface injection type check workaround. |
- var image = context.createImageData(canvas.width.dynamic, canvas.height.dynamic); |
+ var image = context.createImageData(canvas.width as Dynamic, |
+ canvas.height as Dynamic); |
Expect.isFalse(image is CanvasRenderingContext); |
Expect.isFalse(image is CanvasRenderingContext2D); |
Expect.isFalse(image is Element); |