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

Side by Side Diff: tests/html/canvas_pixel_array_type_alias_test.dart

Issue 10917275: Update unittest to new package layout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/html/callbacks_test.dart ('k') | tests/html/canvas_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('CanvasTest'); 1 #library('CanvasTest');
2 #import('../../pkg/unittest/unittest.dart'); 2 #import('../../pkg/unittest/lib/unittest.dart');
3 #import('../../pkg/unittest/html_config.dart'); 3 #import('../../pkg/unittest/lib/html_config.dart');
4 #import('dart:html'); 4 #import('dart:html');
5 5
6 // We have aliased the legacy type CanvasPixelArray with the new type 6 // We have aliased the legacy type CanvasPixelArray with the new type
7 // Uint8ClampedArray by mapping the CanvasPixelArray type tag to 7 // Uint8ClampedArray by mapping the CanvasPixelArray type tag to
8 // Uint8ClampedArray. It is not a perfect match since CanvasPixelArray is 8 // Uint8ClampedArray. It is not a perfect match since CanvasPixelArray is
9 // missing the ArrayBufferView members. These should appear to be null. 9 // missing the ArrayBufferView members. These should appear to be null.
10 10
11 Object confuseType(x) => [1, x, [x], 's'] [1]; 11 Object confuseType(x) => [1, x, [x], 's'] [1];
12 12
13 main() { 13 main() {
(...skipping 28 matching lines...) Expand all
42 }); 42 });
43 } 43 }
44 44
45 void checkPixel(Uint8ClampedArray data, int offset, List<int> rgba) 45 void checkPixel(Uint8ClampedArray data, int offset, List<int> rgba)
46 { 46 {
47 offset *= 4; 47 offset *= 4;
48 for (var i = 0; i < 4; ++i) { 48 for (var i = 0; i < 4; ++i) {
49 Expect.equals(rgba[i], data[offset + i]); 49 Expect.equals(rgba[i], data[offset + i]);
50 } 50 }
51 } 51 }
OLDNEW
« no previous file with comments | « tests/html/callbacks_test.dart ('k') | tests/html/canvas_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698