Lines Matching refs:WebSettings
3 import android.webkit.WebSettings;
17 private TestWebSettings webSettings;
23 webSettings = new TestWebSettings();
28 assertThat(webSettings.getAllowFileAccess(), equalTo(true));
29 assertThat(webSettings.getBlockNetworkImage(), equalTo(false));
30 assertThat(webSettings.getBlockNetworkLoads(), equalTo(false));
31 assertThat(webSettings.getBuiltInZoomControls(), equalTo(true));
32 assertThat(webSettings.getDatabaseEnabled(), equalTo(false));
33 assertThat(webSettings.getDomStorageEnabled(), equalTo(false));
34 assertThat(webSettings.getJavaScriptEnabled(), equalTo(false));
35 assertThat(webSettings.getLightTouchEnabled(), equalTo(false));
36 assertThat(webSettings.getLoadWithOverviewMode(), equalTo(false));
37 assertThat(webSettings.getPluginState(), equalTo(WebSettings.PluginState.OFF));
40 assertThat(webSettings.getPluginsEnabled(), equalTo(false));
43 assertThat(webSettings.getNeedInitialFocus(), equalTo(false));
44 assertThat(webSettings.getSupportMultipleWindows(), equalTo(false));
45 assertThat(webSettings.getSupportZoom(), equalTo(true));
51 webSettings.setAllowFileAccess(value);
52 assertThat(webSettings.getAllowFileAccess(), equalTo(value));
59 webSettings.setAllowFileAccessFromFileURLs(value);
60 assertThat(webSettings.getAllowFileAccessFromFileURLs(), equalTo(value));
67 webSettings.setAllowUniversalAccessFromFileURLs(value);
68 assertThat(webSettings.getAllowUniversalAccessFromFileURLs(), equalTo(value));
75 webSettings.setBlockNetworkImage(value);
76 assertThat(webSettings.getBlockNetworkImage(), equalTo(value));
83 webSettings.setBlockNetworkLoads(value);
84 assertThat(webSettings.getBlockNetworkLoads(), equalTo(value));
91 webSettings.setBuiltInZoomControls(value);
92 assertThat(webSettings.getBuiltInZoomControls(), equalTo(value));
99 webSettings.setDatabaseEnabled(value);
100 assertThat(webSettings.getDatabaseEnabled(), equalTo(value));
107 webSettings.setDomStorageEnabled(value);
108 assertThat(webSettings.getDomStorageEnabled(), equalTo(value));
115 webSettings.setJavaScriptEnabled(value);
116 assertThat(webSettings.getJavaScriptEnabled(), equalTo(value));
123 webSettings.setLightTouchEnabled(value);
124 assertThat(webSettings.getLightTouchEnabled(), equalTo(value));
131 webSettings.setLoadWithOverviewMode(value);
132 assertThat(webSettings.getLoadWithOverviewMode(), equalTo(value));
139 webSettings.setNeedInitialFocus(value);
140 assertThat(webSettings.getNeedInitialFocus(), equalTo(value));
147 webSettings.setPluginsEnabled(value);
148 assertThat(webSettings.getPluginsEnabled(), equalTo(value));
154 WebSettings.PluginState[] states = {
155 WebSettings.PluginState.OFF,
156 WebSettings.PluginState.ON,
157 WebSettings.PluginState.ON_DEMAND
160 for (WebSettings.PluginState state : states) {
161 webSettings.setPluginState(state);
162 assertThat(webSettings.getPluginState(), equalTo(state));
169 webSettings.setSupportMultipleWindows(value);
170 assertThat(webSettings.getSupportMultipleWindows(), equalTo(value));
177 webSettings.setSupportZoom(value);
178 assertThat(webSettings.getSupportZoom(), equalTo(value));