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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Respond to latest comments Created 3 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
Index: content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
index 9fd15aa2c1959416c2569f356aa81c7b9093632e..7ec3e4771276349ba3c91208242e943f79ae93cc 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
@@ -23,6 +23,7 @@ import org.junit.runner.RunWith;
import org.chromium.base.ThreadUtils;
import org.chromium.base.test.util.Feature;
import org.chromium.content.browser.input.ImeAdapter;
+import org.chromium.content.browser.input.TextSuggestionHost;
import org.chromium.content.browser.test.ContentJUnit4ClassRunner;
import org.chromium.content.browser.test.util.TestInputMethodManagerWrapper;
import org.chromium.content_public.browser.WebContents;
@@ -104,6 +105,9 @@ public class PopupZoomerTest {
new TestInputMethodManagerWrapper(mContentViewCore)));
mPopupZoomer = createPopupZoomerForTest(InstrumentationRegistry.getTargetContext());
mContentViewCore.setPopupZoomerForTest(mPopupZoomer);
+ mContentViewCore.setTextSuggestionHostForTesting(new TextSuggestionHost(context,
+ webContents, mActivityTestRule.getContentViewCore().getContainerView(),
+ mContentViewCore, mContentViewCore.getRenderCoordinates()));
}
});
}

Powered by Google App Engine
This is Rietveld 408576698