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

Side by Side Diff: tests/html/canvas_using_html_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/canvas_test.dart ('k') | tests/html/cross_frame_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('CanvasUsingHtmlTest'); 1 #library('CanvasUsingHtmlTest');
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', prefix: 'html'); 4 #import('dart:html', prefix: 'html');
5 #import('dart:html'); 5 #import('dart:html');
6 6
7 // Version of Canvas test that implicitly uses dart:html library via unittests. 7 // Version of Canvas test that implicitly uses dart:html library via unittests.
8 8
9 main() { 9 main() {
10 CanvasElement canvas; 10 CanvasElement canvas;
11 CanvasRenderingContext2D context; 11 CanvasRenderingContext2D context;
12 12
13 canvas = new Element.tag('canvas'); 13 canvas = new Element.tag('canvas');
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ImageData image = context.createImageData(canvas.width, 48 ImageData image = context.createImageData(canvas.width,
49 canvas.height); 49 canvas.height);
50 Uint8ClampedArray bytes = image.data; 50 Uint8ClampedArray bytes = image.data;
51 51
52 // FIXME: uncomment when numeric index getters are supported. 52 // FIXME: uncomment when numeric index getters are supported.
53 //var byte = bytes[0]; 53 //var byte = bytes[0];
54 54
55 expect(bytes, hasLength(40000)); 55 expect(bytes, hasLength(40000));
56 }); 56 });
57 } 57 }
OLDNEW
« no previous file with comments | « tests/html/canvas_test.dart ('k') | tests/html/cross_frame_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698