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

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 423303005: Fix canvas test for Chrome 37 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 73eeeb7a2ddd8fc1d09244fc215778811d5b13d2..ffd8b8db6cb0e743ab1064fcef15e51795713121 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -678,7 +678,7 @@ main() {
// Draw a blue box.
context.fillText('█', x, y);
- var width = context.measureText('█').width.toInt();
+ var width = context.measureText('█').width.ceil();
checkPixel(readPixel(x, y), [0, 0, 255, 255]);
checkPixel(readPixel(x + 10, y), [0, 0, 255, 255]);
@@ -699,7 +699,7 @@ main() {
// Draw a blue box with null maxWidth.
context.fillText('█', x, y, null);
- var width = context.measureText('█').width.toInt();
+ var width = context.measureText('█').width.ceil();
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