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

Side by Side Diff: client/tests/client/dom/CanvasUsingHtmlTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
OLDNEW
1 #library('CanvasUsingHtmlTest'); 1 #library('CanvasUsingHtmlTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:html', prefix: 'html'); 3 #import('dart:html', prefix: 'html');
4 #import('dart:dom'); 4 #import('dart:dom');
5 5
6 // Version of Canvas test that implicitly uses dart:html library via unittests. 6 // Version of Canvas test that implicitly uses dart:html library via unittests.
7 7
8 main() { 8 main() {
9 HTMLCanvasElement canvas; 9 HTMLCanvasElement canvas;
10 CanvasRenderingContext2D context; 10 CanvasRenderingContext2D context;
11 11
12 // FIXME: once main is run on content loaded, this hack won't be necessary. 12 // FIXME: once main is run on content loaded, this hack won't be necessary.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ImageData image = context.createImageData(canvas.width, 50 ImageData image = context.createImageData(canvas.width,
51 canvas.height); 51 canvas.height);
52 CanvasPixelArray bytes = image.data; 52 CanvasPixelArray bytes = image.data;
53 53
54 // FIXME: uncomment when numeric index getters are supported. 54 // FIXME: uncomment when numeric index getters are supported.
55 //var byte = bytes[0]; 55 //var byte = bytes[0];
56 56
57 Expect.equals(40000, bytes.length); 57 Expect.equals(40000, bytes.length);
58 }); 58 });
59 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698