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

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 1802343003: Experiment with canvasrenderingcontext2d test failure (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 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 ffd8b8db6cb0e743ab1064fcef15e51795713121..6d87a648a795490d6756500d46106ce463fb1567 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -688,7 +688,9 @@ main() {
expectPixelFilled(x + 10, y);
// The box does not draw after `width` pixels.
- expectPixelFilled(x + width - 1, y);
+ // Check -2 rather than -1 because this seems
+ // to run into a rounding error on Mac bots.
+ expectPixelFilled(x + width - 2, y);
expectPixelUnfilled(x + width + 1, y);
});
@@ -709,7 +711,9 @@ main() {
expectPixelFilled(x + 10, y);
// The box does not draw after `width` pixels.
- expectPixelFilled(x + width - 1, y);
+ // Check -2 rather than -1 because this seems
+ // to run into a rounding error on Mac bots.
+ expectPixelFilled(x + width - 2, y);
expectPixelUnfilled(x + width + 1, y);
});
« 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