Index: tests/html/canvasrenderingcontext2d_test.dart |
diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart |
index 1e77f6c7a850c58e3c4e721de3b63cb0136a7b2b..6b88843165e5f1b94c8f8cf0fc69bac2abbd1461 100644 |
--- a/tests/html/canvasrenderingcontext2d_test.dart |
+++ b/tests/html/canvasrenderingcontext2d_test.dart |
@@ -8,7 +8,7 @@ import '../../pkg/unittest/lib/html_config.dart'; |
import 'dart:html'; |
// Some rounding errors in the browsers. |
-checkPixel(Uint8ClampedArray pixel, List<int> expected) { |
+checkPixel(List<int> pixel, List<int> expected) { |
expect(pixel[0], closeTo(expected[0], 1)); |
expect(pixel[1], closeTo(expected[1], 1)); |
expect(pixel[2], closeTo(expected[2], 1)); |
@@ -23,7 +23,7 @@ main() { |
var context = canvas.context2d; |
- Uint8ClampedArray readPixel() { |
+ List<int> readPixel() { |
var imageData = context.getImageData(2, 2, 1, 1); |
return imageData.data; |
} |