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

Unified Diff: views/controls/textfield/native_textfield_views_unittest.cc

Issue 8570003: Implement font fallback in RenderTextWin, try #2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/gfx/render_text_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_views_unittest.cc
===================================================================
--- views/controls/textfield/native_textfield_views_unittest.cc (revision 110489)
+++ views/controls/textfield/native_textfield_views_unittest.cc (working copy)
@@ -1354,25 +1354,27 @@
sel = gfx::SelectionModel(1, 0, gfx::SelectionModel::TRAILING);
gfx::Rect bound = GetCursorBounds(sel);
sel = gfx::SelectionModel(1, 1, gfx::SelectionModel::LEADING);
- EXPECT_EQ(bound, GetCursorBounds(sel));
+ EXPECT_EQ(bound.x(), GetCursorBounds(sel).x());
cursor_bounds.push_back(bound);
+ // Check that a cursor at the end of the Latin portion of the text is at the
+ // same position as a cursor placed at the end of the RTL Hebrew portion.
sel = gfx::SelectionModel(2, 1, gfx::SelectionModel::TRAILING);
bound = GetCursorBounds(sel);
sel = gfx::SelectionModel(4, 3, gfx::SelectionModel::TRAILING);
- EXPECT_EQ(bound, GetCursorBounds(sel));
+ EXPECT_EQ(bound.x(), GetCursorBounds(sel).x());
cursor_bounds.push_back(bound);
sel = gfx::SelectionModel(3, 2, gfx::SelectionModel::TRAILING);
bound = GetCursorBounds(sel);
sel = gfx::SelectionModel(3, 3, gfx::SelectionModel::LEADING);
- EXPECT_EQ(bound, GetCursorBounds(sel));
+ EXPECT_EQ(bound.x(), GetCursorBounds(sel).x());
cursor_bounds.push_back(bound);
sel = gfx::SelectionModel(2, 2, gfx::SelectionModel::LEADING);
bound = GetCursorBounds(sel);
sel = gfx::SelectionModel(4, 2, gfx::SelectionModel::LEADING);
- EXPECT_EQ(bound, GetCursorBounds(sel));
+ EXPECT_EQ(bound.x(), GetCursorBounds(sel).x());
cursor_bounds.push_back(bound);
// Expected cursor position when clicking left and right of each character.
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698