Upstream version 6.35.131.0
[platform/framework/web/crosswalk.git] / src / xwalk / test / android / core / javatests / src / org / xwalk / core / xwview / test / SetAppCacheEnabledTest.java
index e262a7f..fa25a46 100644 (file)
@@ -21,7 +21,6 @@ import org.chromium.content.browser.test.util.Criteria;
 import org.chromium.content.browser.test.util.CriteriaHelper;
 import org.chromium.net.test.util.TestWebServer;
 import org.xwalk.core.XWalkClient;
-import org.xwalk.core.XWalkContent;
 import org.xwalk.core.XWalkSettings;
 import org.xwalk.core.XWalkView;
 import org.xwalk.core.XWalkWebChromeClient;
@@ -114,7 +113,6 @@ public class SetAppCacheEnabledTest extends XWalkViewTestBase {
                 createXWalkViewContainerOnMainSync(getActivity(), client,
                         resourceClient, chromeClient);
 
-        final XWalkContent xWalkContent = getXWalkContentOnMainSync(xWalkView);
         final XWalkSettings settings = getXWalkSettings(xWalkView);
         settings.setJavaScriptEnabled(true);
         settings.setAppCacheEnabled(false);
@@ -125,7 +123,7 @@ public class SetAppCacheEnabledTest extends XWalkViewTestBase {
             ManifestTestHelper helper = new ManifestTestHelper(
                     webServer, "testAppCache.html", "appcache.manifest");
             loadUrlSyncByContent(
-                    xWalkContent,
+                    xWalkView,
                     mContentClient,
                     helper.getHtmlUrl());
             helper.waitUntilHtmlIsRequested(0);
@@ -136,7 +134,7 @@ public class SetAppCacheEnabledTest extends XWalkViewTestBase {
             // Enables AppCache. Use the default path if app cache path isn't set.
             settings.setAppCacheEnabled(true);
             loadUrlSyncByContent(
-                    xWalkContent,
+                    xWalkView,
                     mContentClient,
                     helper.getHtmlUrl());
             helper.waitUntilManifestIsRequested(0);