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

Unified Diff: tests/html/canvas_pixel_array_type_alias_test.dart

Issue 10544167: Some unit test fixes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/cache_test.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
===================================================================
--- tests/html/canvas_pixel_array_type_alias_test.dart (revision 8732)
+++ tests/html/canvas_pixel_array_type_alias_test.dart (working copy)
@@ -31,14 +31,14 @@
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.isTrue(confuseType(data) is Uint8ClampedArray, 'canvas array type');
+ expect(confuseType(data) is Uint8ClampedArray, reason: 'canvas array type');
- Expect.equals(40000, data.length);
+ expect(data, hasLength(40000));
checkPixel(data, 0, [0, 0, 0, 0]);
checkPixel(data, width * height - 1, [0, 0, 0, 0]);
data[100] = 200;
- Expect.equals(200, data[100]);
+ expect(data[100], equals(200));
});
}
« no previous file with comments | « tests/html/cache_test.dart ('k') | tests/html/canvas_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698