Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 12036013: Initial work on ImageData.data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/canvas_test.dart ('k') | tests/html/instance_of_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « tests/html/canvas_test.dart ('k') | tests/html/instance_of_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698