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

Unified Diff: tests/html/canvas_pixel_array_type_alias_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
Index: tests/html/canvas_pixel_array_type_alias_test.dart
===================================================================
--- tests/html/canvas_pixel_array_type_alias_test.dart (revision 14114)
+++ tests/html/canvas_pixel_array_type_alias_test.dart (working copy)
@@ -31,7 +31,8 @@
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, isTrue, 'canvas array type');
+ expect(confuseType(data) is Uint8ClampedArray, isTrue,
+ reason: 'canvas array type');
expect(data, hasLength(40000));
checkPixel(data, 0, [0, 0, 0, 0]);
@@ -46,6 +47,6 @@
{
offset *= 4;
for (var i = 0; i < 4; ++i) {
- Expect.equals(rgba[i], data[offset + i]);
+ expect(rgba[i], equals(data[offset + i]));
}
}

Powered by Google App Engine
This is Rietveld 408576698