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

Unified Diff: tests/html/canvas_pixel_array_type_alias_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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/canvas_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9fef8ab65174acfa919d21ffeb717e295d20aa7c..bcde1f4e157ed53be4bab6451d442d0a7b2dd57d 100644
--- a/tests/html/canvas_pixel_array_type_alias_test.dart
+++ b/tests/html/canvas_pixel_array_type_alias_test.dart
@@ -28,10 +28,10 @@ main() {
test('CreateImageData', () {
ImageData image = context.createImageData(canvas.width,
canvas.height);
- Uint8ClampedArray data = image.data;
+ List<int> 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, isTrue,
+ expect(confuseType(data) is List<int>, isTrue,
reason: 'canvas array type');
expect(data, hasLength(40000));
@@ -43,7 +43,7 @@ main() {
});
}
-void checkPixel(Uint8ClampedArray data, int offset, List<int> rgba)
+void checkPixel(List<int> data, int offset, List<int> rgba)
{
offset *= 4;
for (var i = 0; i < 4; ++i) {
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/canvas_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698