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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 1635953002: Added replacement_range to ImeSetComposition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: erikchen's review Created 4 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
Index: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
index 374adaf7afa355201721d2b1742846e9d26a12b9..b62a5c9f2ff84aa5e9ef2cebb4a02870c51d0d8a 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
@@ -1084,9 +1084,10 @@ TEST_F(RenderWidgetHostViewAuraTest, SetCompositionText) {
EXPECT_EQ(underlines[i].background_color,
base::get<1>(params)[i].backgroundColor);
}
+ EXPECT_EQ(gfx::Range::InvalidRange(), base::get<2>(params));
// highlighted range
- EXPECT_EQ(4, base::get<2>(params)) << "Should be the same to the caret pos";
EXPECT_EQ(4, base::get<3>(params)) << "Should be the same to the caret pos";
+ EXPECT_EQ(4, base::get<4>(params)) << "Should be the same to the caret pos";
}
view_->ImeCancelComposition();

Powered by Google App Engine
This is Rietveld 408576698