diff --git a/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/base/XWalkViewTestBase.java b/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/base/XWalkViewTestBase.java index fa4a4d0eb..ccd8e4331 100644 --- a/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/base/XWalkViewTestBase.java +++ b/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/base/XWalkViewTestBase.java @@ -1527,4 +1527,13 @@ public String call() throws Exception { } }); } + + protected void setQuirksMode(final boolean value) throws Exception { + getInstrumentation().runOnMainSync(new Runnable() { + @Override + public void run() { + mXWalkView.getSettings().setSupportQuirksMode(value); + } + }); + } } diff --git a/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/test/v6/XWalkViewTest.java b/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/test/v6/XWalkViewTest.java index eed807821..77c44addf 100644 --- a/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/test/v6/XWalkViewTest.java +++ b/embeddingapi/embedding-api-android-tests/embeddingapi/src/org/xwalk/embedding/test/v6/XWalkViewTest.java @@ -19,12 +19,10 @@ import org.apache.http.Header; import org.apache.http.HttpRequest; import org.chromium.content.browser.test.util.CallbackHelper; - import org.xwalk.embedding.base.XWalkViewTestBase; import org.xwalk.embedding.util.CommonResources; import android.annotation.SuppressLint; import android.content.Context; -import android.os.SystemClock; import android.test.suitebuilder.annotation.SmallTest; import android.test.suitebuilder.annotation.MediumTest; import android.view.WindowManager; @@ -107,7 +105,7 @@ public void testSetInitialScale1() throws Throwable { @SmallTest public void testSetInitialScale2() throws Throwable { - + setQuirksMode(false); WindowManager wm = (WindowManager) getInstrumentation().getTargetContext() .getSystemService(Context.WINDOW_SERVICE); Point screenSize = new Point(); @@ -119,12 +117,12 @@ public void testSetInitialScale2() throws Throwable { + "
" + "testSetInitialScale