webkit/webkit/src/androidTest/java/androidx/webkit/ServiceWorkerWebSettingsCompatTest.java
/**
     * This should remain functionally equivalent to
     * android.webkit.cts.ServiceWorkerWebSettingsTest#testAllowContentAccess. 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#testAllowContentAccess. Modifications to
this test should be reflected in that test as necessary.
This should remain functionally equivalent to android . webkit . cts . ServiceWorkerWebSettingsTest#testAllowContentAccess . Modifications to this test should be reflected in that test as necessary .
@Test
    public void testAllowContentAccess() {
        WebkitUtils.checkFeature(WebViewFeature.SERVICE_WORKER_CONTENT_ACCESS);
        Assert.assertTrue(mSettings.getAllowContentAccess());
        for (boolean b : new boolean[]{false, true}) {
            mSettings.setAllowContentAccess(b);
            Assert.assertEquals(b, mSettings.getAllowContentAccess());
        }
    }
@ Test public void testAllowContentAccess ( ) { WebkitUtils . checkFeature ( WebViewFeature . SERVICE_WORKER_CONTENT_ACCESS ) ; Assert . assertTrue ( mSettings . getAllowContentAccess ( ) ) ; for ( boolean b : new boolean [ ] { false , true } ) { mSettings . setAllowContentAccess ( b ) ; Assert . assertEquals ( b , mSettings . getAllowContentAccess ( ) ) ; } }
This should remain functionally equivalent to
 android.webkit.cts.ServiceWorkerWebSettingsTest#testAllowContentAccess.
This should remain functionally equivalent to android . webkit . cts . ServiceWorkerWebSettingsTest#testAllowContentAccess .