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

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 34103002: Fixed type error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/canvasrenderingcontext2d_test.dart
diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart
index 9cafb0d8c9f5296b077b44dadae515133c010ea5..3f17dc921cc39fa48b69916dbf58e1c2a0bc0d89 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -689,7 +689,7 @@ main() {
// Draw a blue box.
context.fillText('█', x, y);
- var width = context.measureText('█').width;
+ var width = context.measureText('█').width.toInt();
checkPixel(readPixel(x, y), [0, 0, 255, 255]);
checkPixel(readPixel(x + 10, y), [0, 0, 255, 255]);
@@ -710,7 +710,7 @@ main() {
// Draw a blue box with null maxWidth.
context.fillText('█', x, y, null);
- var width = context.measureText('█').width;
+ var width = context.measureText('█').width.toInt();
checkPixel(readPixel(x, y), [0, 0, 255, 255]);
checkPixel(readPixel(x + 10, y), [0, 0, 255, 255]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698