Chromium Code Reviews| 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 b1ac2ad0d99113d49ab1a470f52a3ecc91dc7b37..8ef7565fcb168b8bdf20e46be953f96a8a023de0 100644 |
| --- a/tests/html/canvas_pixel_array_type_alias_test.dart |
| +++ b/tests/html/canvas_pixel_array_type_alias_test.dart |
| @@ -31,7 +31,8 @@ main() { |
| Uint8ClampedArray 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: |
| - expect(confuseType(data) is Uint8ClampedArray, reason: 'canvas array type'); |
| + // OPTIONALS expect(confuseType(data) is Uint8ClampedArray, reason: 'canvas array type'); |
| + expect(confuseType(data) is Uint8ClampedArray, isTrue, 'canvas array type'); |
| expect(data, hasLength(40000)); |
|
Emily Fortuna
2012/10/16 19:51:17
question: why does this test use the old style of
Anton Muhin
2012/10/17 09:13:38
Seems reasonable, but let address that in a separa
|
| checkPixel(data, 0, [0, 0, 0, 0]); |