/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 432 private WebViewOnUiThread mOnUiThread; field in WebViewSslTest 455 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp() 461 if (mOnUiThread != null) { in tearDown() 462 mOnUiThread.cleanUp(); in tearDown() 493 super(mOnUiThread); in testInsecureSiteClearsCertificate() 502 mOnUiThread.setWebViewClient(new MockWebViewClient()); in testInsecureSiteClearsCertificate() 503 mOnUiThread.loadUrlAndWaitForCompletion( in testInsecureSiteClearsCertificate() 505 SslCertificate cert = mOnUiThread.getCertificate(); in testInsecureSiteClearsCertificate() 512 mOnUiThread.loadUrlAndWaitForCompletion( in testInsecureSiteClearsCertificate() 514 assertNull(mOnUiThread.getCertificate()); in testInsecureSiteClearsCertificate() [all …]
|
D | WebViewTest.java | 159 private WebViewOnUiThread mOnUiThread; field in WebViewTest 183 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp() 189 if (mOnUiThread != null) { in tearDown() 190 mOnUiThread.cleanUp(); in tearDown() 328 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadUrl() 350 mOnUiThread.postUrlAndWaitForCompletion(nonNetworkUrl, new byte[1]); in testPostUrlWithNonNetworkUrl() 366 mOnUiThread.postUrlAndWaitForCompletion(networkUrl, postData); in testPostUrlWithNetworkUrl() 389 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadUrlDoesNotStripParamsWhenLoadingContentUrls() 406 mOnUiThread.loadUrlAndWaitForCompletion(url, map); in testAppInjectedXRequestedWithHeaderIsNotOverwritten() 429 mOnUiThread.loadUrlAndWaitForCompletion(url, Collections.unmodifiableMap(map)); in testAppCanInjectHeadersViaImmutableMap() [all …]
|
D | WebViewZoomTest.java | 48 private WebViewOnUiThread mOnUiThread; field in WebViewZoomTest 68 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp() 69 mOnUiThread.requestFocus(); in setUp() 79 mOnUiThread.setWebViewClient(mWebViewClient); in setUp() 82 mOnUiThread.setLayoutHeightToMatchParent(); in setUp() 88 if (mOnUiThread != null) { in tearDown() 89 mOnUiThread.cleanUp(); in tearDown() 115 mOnUiThread.loadUrlAndWaitForCompletion( in setUpPage() 127 assertTrue(mOnUiThread.zoomIn()); in testZoomIn() 136 WebSettings settings = mOnUiThread.getSettings(); in testGetZoomControls() [all …]
|
D | HttpAuthHandlerTest.java | 40 private WebViewOnUiThread mOnUiThread; field in HttpAuthHandlerTest 51 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 57 if (mOnUiThread != null) { in tearDown() 58 mOnUiThread.cleanUp(); in tearDown() 77 super(mOnUiThread); in ProceedHttpAuthClient() 102 super(mOnUiThread); in CancelHttpAuthClient() 115 mOnUiThread.setWebViewClient(client); in incorrectCredentialsAccessDenied() 119 mOnUiThread.loadUrlAndWaitForCompletion(url); in incorrectCredentialsAccessDenied() 122 … assertEquals(CtsTestServer.getReasonString(HttpStatus.SC_UNAUTHORIZED), mOnUiThread.getTitle()); in incorrectCredentialsAccessDenied() 127 mOnUiThread.setWebViewClient(client); in missingCredentialsAccessDenied() [all …]
|
D | WebSettingsTest.java | 87 private WebViewOnUiThread mOnUiThread; field in WebSettingsTest 99 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 100 mSettings = mOnUiThread.getSettings(); in setUp() 110 if (mOnUiThread != null) { in tearDown() 111 mOnUiThread.cleanUp(); in tearDown() 217 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 218 assertEquals(defaultUserAgent, mOnUiThread.getTitle()); in testAccessUserAgentString() 223 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 224 assertEquals(defaultUserAgent, mOnUiThread.getTitle()); in testAccessUserAgentString() 229 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() [all …]
|
D | WebViewClientTest.java | 57 private WebViewOnUiThread mOnUiThread; field in WebViewClientTest 88 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 94 if (mOnUiThread != null) { in tearDown() 95 mOnUiThread.cleanUp(); in tearDown() 115 assertFalse(webViewClient.shouldOverrideUrlLoading(mOnUiThread.getWebView(), new String())); in testShouldOverrideUrlLoadingDefault() 129 mOnUiThread.setWebViewClient(webViewClient); in testShouldOverrideUrlLoading() 130 mOnUiThread.getSettings().setJavaScriptEnabled(true); in testShouldOverrideUrlLoading() 134 mOnUiThread.loadDataAndWaitForCompletion(data, "text/html", null); in testShouldOverrideUrlLoading() 135 clickOnLinkUsingJs("link", mOnUiThread); in testShouldOverrideUrlLoading() 154 mOnUiThread.setWebViewClient(mainWebViewClient); in testShouldOverrideUrlLoadingOnCreateWindow() [all …]
|
D | WebChromeClientTest.java | 54 private WebViewOnUiThread mOnUiThread; field in WebChromeClientTest 67 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 74 if (mOnUiThread != null) { in tearDown() 75 mOnUiThread.cleanUp(); in tearDown() 92 mOnUiThread.setWebChromeClient(webChromeClient); in testOnProgressChanged() 96 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged() 111 mOnUiThread.setWebChromeClient(webChromeClient); in testOnReceivedTitle() 115 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle() 132 mOnUiThread.setWebChromeClient(webChromeClient); in testOnReceivedIcon() 144 assertNull(mOnUiThread.getFavicon()); in testOnReceivedIcon() [all …]
|
D | PostMessageTest.java | 41 private WebViewOnUiThread mOnUiThread; field in PostMessageTest 56 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp() 57 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 63 if (mOnUiThread != null) { in tearDown() 64 mOnUiThread.cleanUp(); in tearDown() 94 mOnUiThread.loadDataWithBaseURLAndWaitForCompletion(BASE_URI, data, in loadPage() 102 return mOnUiThread.getTitle().equals(title); in waitForTitle() 143 mOnUiThread.postWebMessage(message, origin); in verifyPostMessageToOrigin() 160 mOnUiThread.postWebMessage(new WebMessage(Integer.toString(i)), in testMultipleMessagesToMainFrame() 177 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testMessageChannel() [all …]
|
D | WebHistoryItemTest.java | 35 private WebViewOnUiThread mOnUiThread; field in WebHistoryItemTest 63 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 69 if (mOnUiThread != null) { in tearDown() 70 mOnUiThread.cleanUp(); in tearDown() 84 final WaitForIconClient waitForIconClient = new WaitForIconClient(mOnUiThread); in testWebHistoryItem() 85 mOnUiThread.setWebChromeClient(waitForIconClient); in testWebHistoryItem() 93 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 97 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem() 105 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 112 Bitmap icon = mOnUiThread.getFavicon(); in testWebHistoryItem() [all …]
|
D | WebBackForwardListTest.java | 32 private WebViewOnUiThread mOnUiThread; field in WebBackForwardListTest 43 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 49 if (mOnUiThread != null) { in tearDown() 50 mOnUiThread.cleanUp(); in tearDown() 60 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testGetCurrentItem() 74 mOnUiThread.loadUrlAndWaitForCompletion(url1); in testGetCurrentItem() 77 mOnUiThread.loadUrlAndWaitForCompletion(url2); in testGetCurrentItem() 80 mOnUiThread.loadUrlAndWaitForCompletion(url3); in testGetCurrentItem() 91 if (mOnUiThread.getProgress() < 100) { in checkBackForwardList() 94 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in checkBackForwardList()
|
D | WebViewRenderProcessClientTest.java | 36 private WebViewOnUiThread mOnUiThread; field in WebViewRenderProcessClientTest 47 mOnUiThread = new WebViewOnUiThread(webView); in setUp() 52 if (mOnUiThread != null) { in tearDown() 53 mOnUiThread.cleanUp(); in tearDown() 96 WebView webView = mOnUiThread.getWebView(); in blockRenderProcess() 111 WebView webView = mOnUiThread.getWebView(); in addJsBlockerInterface() 136 mOnUiThread.setWebViewRenderProcessClient(client); in testWebViewRenderProcessClientOnExecutor() 138 mOnUiThread.setWebViewRenderProcessClient(executor, client); in testWebViewRenderProcessClientOnExecutor() 142 mOnUiThread.loadUrlAndWaitForCompletion("about:blank"); in testWebViewRenderProcessClientOnExecutor() 168 mOnUiThread.getWebViewRenderProcessClient()); in disabled_testSetWebViewRenderProcessClient() [all …]
|
D | ServiceWorkerClientTest.java | 78 private WebViewOnUiThread mOnUiThread; field in ServiceWorkerClientTest 132 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 133 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 136 mOnUiThread.addJavascriptInterface(mJavascriptStatusReceiver, JS_INTERFACE_NAME); in setUp() 137 mOnUiThread.setWebViewClient(new InterceptClient(mOnUiThread)); in setUp() 142 if (mOnUiThread != null) { in tearDown() 143 mOnUiThread.cleanUp(); in tearDown() 165 mOnUiThread.loadUrlAndWaitForCompletion(INDEX_URL); in testServiceWorkerClientInterceptCallback() 191 mOnUiThread.evaluateJavascript(SW_UNREGISTER_RAW_JS, null); in testServiceWorkerClientInterceptCallback()
|
D | GeolocationTest.java | 112 private WebViewOnUiThread mOnUiThread; field in GeolocationTest 151 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 152 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 153 mOnUiThread.getSettings().setGeolocationEnabled(true); in setUp() 154 mOnUiThread.getSettings().setGeolocationDatabasePath( in setUp() 159 mOnUiThread.addJavascriptInterface(mJavascriptStatusReceiver, JS_INTERFACE_NAME); in setUp() 162 mOnUiThread.setWebViewClient(new InterceptClient(mOnUiThread)); in setUp() 206 if (mOnUiThread != null) { in tearDown() 207 mOnUiThread.cleanUp(); in tearDown() 309 mOnUiThread.loadUrlAndWaitForCompletion(url); in loadUrlAndUpdateLocation() [all …]
|
D | CookieManagerTest.java | 45 private WebViewOnUiThread mOnUiThread; field in CookieManagerTest 56 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp() 75 mOnUiThread.cleanUp(); in testGetInstance() 105 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 106 assertEquals("0", mOnUiThread.getTitle()); // no cookies passed in testAcceptCookie() 114 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 115 assertEquals("0", mOnUiThread.getTitle()); // no cookies passed in testAcceptCookie() 126 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 127 assertEquals("1|count=0", mOnUiThread.getTitle()); // outgoing cookie in testAcceptCookie() 137 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() [all …]
|
D | WebViewRenderProcessTest.java | 34 private WebViewOnUiThread mOnUiThread; field in WebViewRenderProcessTest 45 mOnUiThread = new WebViewOnUiThread(webView); in setUp() 50 if (mOnUiThread != null) { in tearDown() 51 mOnUiThread.cleanUp(); in tearDown() 108 final WebView webView = mOnUiThread.getWebView(); 146 WebView webView2 = mOnUiThread.createWebView();
|
D | ServiceWorkerWebSettingsTest.java | 34 private WebViewOnUiThread mOnUiThread; field in ServiceWorkerWebSettingsTest 45 mOnUiThread = new WebViewOnUiThread(webview); in setUp() 52 if (mOnUiThread != null) { in tearDown() 53 mOnUiThread.cleanUp(); in tearDown()
|
D | TracingControllerTest.java | 108 private WebViewOnUiThread mOnUiThread; 120 mOnUiThread = new WebViewOnUiThread(webview); 134 if (mOnUiThread != null) { 135 mOnUiThread.cleanUp(); 304 mOnUiThread.loadUrlAndWaitForCompletion("about:blank");
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | WebViewTest.java | 29 private WebViewOnUiThread mOnUiThread; field in WebViewTest 43 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp() 48 if (mOnUiThread != null) { in tearDown() 49 mOnUiThread.cleanUp(); in tearDown() 60 mOnUiThread.loadUrlAndWaitForCompletion("about:blank"); in testWebViewLoads()
|