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

Unified Diff: ui/gfx/render_text_unittest.cc

Issue 868753005: Enable Roboto by default for testing purpose. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify the test TextDoesntClip. Created 5 years, 11 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 | « ui/base/ui_base_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_unittest.cc
diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc
index 7baa201c195b3632878fd631d4f357fbf4c04d3c..03425aa2b38c4daeadeb576480d48a9242eddd5d 100644
--- a/ui/gfx/render_text_unittest.cc
+++ b/ui/gfx/render_text_unittest.cc
@@ -2423,7 +2423,7 @@ TEST_F(RenderTextTest, TextDoesntClip) {
for (int y = 0; y < kCanvasSize.height(); ++y) {
// Allow one column of anti-aliased pixels past the expected width.
SkColor color = buffer[width + y * kCanvasSize.width()];
- EXPECT_LT(230U, color_utils::GetLuminanceForColor(color)) << string;
+ EXPECT_LT(220U, color_utils::GetLuminanceForColor(color)) << string;
for (int x = 1; x < kTestWidth; ++x) {
color = buffer[width + x + y * kCanvasSize.width()];
EXPECT_EQ(SK_ColorWHITE, color) << string;
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698