webkit/webkit/src/androidTest/java/androidx/webkit/ServiceWorkerWebSettingsCompatTest.java
/**
     * This should remain functionally equivalent to
     * android.webkit.cts.ServiceWorkerWebSettingsTest#testCacheMode. Modifications to this test
     * should be reflected in that test as necessary. See http://go/modifying-webview-cts.
     */
This should remain functionally equivalent to
android.webkit.cts.ServiceWorkerWebSettingsTest#testCacheMode. Modifications to this test
should be reflected in that test as necessary.
This should remain functionally equivalent to android . webkit . cts . ServiceWorkerWebSettingsTest#testCacheMode . Modifications to this test should be reflected in that test as necessary .
@Test
    public void testCacheMode() {
        WebkitUtils.checkFeature(WebViewFeature.SERVICE_WORKER_CACHE_MODE);
        int i = WebSettings.LOAD_DEFAULT;
        Assert.assertEquals(i, mSettings.getCacheMode());
        for (; i <= WebSettings.LOAD_CACHE_ONLY; i++) {
            mSettings.setCacheMode(i);
            Assert.assertEquals(i, mSettings.getCacheMode());
        }
    }
@ Test public void testCacheMode ( ) { WebkitUtils . checkFeature ( WebViewFeature . SERVICE_WORKER_CACHE_MODE ) ; int i = WebSettings . LOAD_DEFAULT ; Assert . assertEquals ( i , mSettings . getCacheMode ( ) ) ; for ( ; i <= WebSettings . LOAD_CACHE_ONLY ; i ++ ) { mSettings . setCacheMode ( i ) ; Assert . assertEquals ( i , mSettings . getCacheMode ( ) ) ; } }
This should remain functionally equivalent to
 android.webkit.cts.ServiceWorkerWebSettingsTest#testCacheMode.
This should remain functionally equivalent to android . webkit . cts . ServiceWorkerWebSettingsTest#testCacheMode .