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

Side by Side Diff: client/tests/client/dom/CanvasTest.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('CanvasTest'); 1 #library('CanvasTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:dom'); 3 #import('dart:dom');
4 4
5 main() { 5 main() {
6 HTMLCanvasElement canvas; 6 HTMLCanvasElement canvas;
7 CanvasRenderingContext2D context; 7 CanvasRenderingContext2D context;
8 int width = 100; 8 int width = 100;
9 int height = 100; 9 int height = 100;
10 10
11 // FIXME: once main is run on content loaded, this hack won't be necessary. 11 // FIXME: once main is run on content loaded, this hack won't be necessary.
12 window.setTimeout(() { 12 window.setTimeout(() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }); 75 });
76 } 76 }
77 77
78 void checkPixel(CanvasPixelArray data, int offset, List<int> rgba) 78 void checkPixel(CanvasPixelArray data, int offset, List<int> rgba)
79 { 79 {
80 offset *= 4; 80 offset *= 4;
81 for (var i = 0; i < 4; ++i) { 81 for (var i = 0; i < 4; ++i) {
82 Expect.equals(rgba[i], data[offset + i]); 82 Expect.equals(rgba[i], data[offset + i]);
83 } 83 }
84 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698