Index: pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart |
diff --git a/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart b/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart |
index 4dd6b407825f0e081bf0bc6b8e83e2283d71291e..9e9111e4f74e83476f14835b4d3ba34e4c310030 100644 |
--- a/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart |
+++ b/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart |
@@ -2,12 +2,11 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file |
-library CanvasTest; |
-import 'package:unittest/unittest.dart'; |
-import 'package:unittest/html_individual_config.dart'; |
import 'dart:html'; |
import 'dart:typed_data'; |
+import 'package:minitest/minitest.dart'; |
+ |
// We have aliased the legacy type CanvasPixelArray with the new type |
// Uint8ClampedArray by mapping the CanvasPixelArray type tag to |
// Uint8ClampedArray. It is not a perfect match since CanvasPixelArray is |
@@ -16,9 +15,6 @@ import 'dart:typed_data'; |
var inscrutable; |
main() { |
- |
- useHtmlIndividualConfiguration(); |
- |
inscrutable = (x) => x; |
int width = 100; |
@@ -39,7 +35,7 @@ main() { |
expect(inscrutable(data) is List<int>, isTrue, |
reason: 'canvas array type'); |
- expect(data, hasLength(40000)); |
+ expect(data.length, 40000); |
checkPixel(data, 0, [0, 0, 0, 0]); |
checkPixel(data, width * height - 1, [0, 0, 0, 0]); |