| Index: tests/html/canvasrenderingcontext2d_test.dart
|
| diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart
|
| index 9cafb0d8c9f5296b077b44dadae515133c010ea5..3f17dc921cc39fa48b69916dbf58e1c2a0bc0d89 100644
|
| --- a/tests/html/canvasrenderingcontext2d_test.dart
|
| +++ b/tests/html/canvasrenderingcontext2d_test.dart
|
| @@ -689,7 +689,7 @@ main() {
|
| // Draw a blue box.
|
| context.fillText('█', x, y);
|
|
|
| - var width = context.measureText('█').width;
|
| + var width = context.measureText('█').width.toInt();
|
|
|
| checkPixel(readPixel(x, y), [0, 0, 255, 255]);
|
| checkPixel(readPixel(x + 10, y), [0, 0, 255, 255]);
|
| @@ -710,7 +710,7 @@ main() {
|
| // Draw a blue box with null maxWidth.
|
| context.fillText('█', x, y, null);
|
|
|
| - var width = context.measureText('█').width;
|
| + var width = context.measureText('█').width.toInt();
|
|
|
| checkPixel(readPixel(x, y), [0, 0, 255, 255]);
|
| checkPixel(readPixel(x + 10, y), [0, 0, 255, 255]);
|
|
|