| Index: chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java
|
| index b4a8c15d309ba9895f45368ec04347b2006c2e3f..306b11cb8a8d2c1f30162edc144002f6133f91f6 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java
|
| @@ -14,23 +14,27 @@ import org.chromium.content.browser.ContentViewCore;
|
| import org.chromium.content.browser.test.util.Criteria;
|
| import org.chromium.content.browser.test.util.CriteriaHelper;
|
| import org.chromium.content.browser.test.util.DOMUtils;
|
| +import org.chromium.content_public.browser.WebContents;
|
| import org.chromium.ui.base.ActivityWindowAndroid;
|
| import org.chromium.ui.base.WindowAndroid;
|
|
|
| +/**
|
| + * Test the select popup and how it interacts with another ContentViewCore.
|
| + */
|
| public class SelectPopupOtherContentViewTest extends ChromeShellTestBase {
|
| private static final String SELECT_URL = UrlUtils.encodeHtmlDataUri(
|
| - "<html><body>" +
|
| - "Which animal is the strongest:<br/>" +
|
| - "<select id=\"select\">" +
|
| - "<option>Black bear</option>" +
|
| - "<option>Polar bear</option>" +
|
| - "<option>Grizzly</option>" +
|
| - "<option>Tiger</option>" +
|
| - "<option>Lion</option>" +
|
| - "<option>Gorilla</option>" +
|
| - "<option>Chipmunk</option>" +
|
| - "</select>" +
|
| - "</body></html>");
|
| + "<html><body>"
|
| + + "Which animal is the strongest:<br/>"
|
| + + "<select id=\"select\">"
|
| + + "<option>Black bear</option>"
|
| + + "<option>Polar bear</option>"
|
| + + "<option>Grizzly</option>"
|
| + + "<option>Tiger</option>"
|
| + + "<option>Lion</option>"
|
| + + "<option>Gorilla</option>"
|
| + + "<option>Chipmunk</option>"
|
| + + "</select>"
|
| + + "</body></html>");
|
|
|
| private class PopupShowingCriteria implements Criteria {
|
| @Override
|
| @@ -69,12 +73,12 @@ public class SelectPopupOtherContentViewTest extends ChromeShellTestBase {
|
| ThreadUtils.runOnUiThreadBlocking(new Runnable() {
|
| @Override
|
| public void run() {
|
| - long nativeWebContents = ContentViewUtil.createNativeWebContents(false);
|
| + WebContents webContents = ContentViewUtil.createWebContents(false, false);
|
| WindowAndroid windowAndroid = new ActivityWindowAndroid(getActivity());
|
|
|
| ContentViewCore contentViewCore = new ContentViewCore(getActivity());
|
| ContentView cv = ContentView.newInstance(getActivity(), contentViewCore);
|
| - contentViewCore.initialize(cv, cv, nativeWebContents, windowAndroid);
|
| + contentViewCore.initialize(cv, cv, webContents, windowAndroid);
|
| contentViewCore.destroy();
|
| }
|
| });
|
|
|