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