Searched refs:webViewClient (Results 1 – 4 of 4) sorted by relevance
90 final WebViewClient webViewClient = new WebViewClient(); in testShouldOverrideUrlLoadingDefault() local91 assertFalse(webViewClient.shouldOverrideUrlLoading(mOnUiThread.getWebView(), new String())); in testShouldOverrideUrlLoadingDefault()99 final MockWebViewClient webViewClient = new MockWebViewClient(); in testShouldOverrideUrlLoading() local100 mOnUiThread.setWebViewClient(webViewClient); in testShouldOverrideUrlLoading()107 assertEquals(TEST_URL, webViewClient.getLastShouldOverrideUrl()); in testShouldOverrideUrlLoading()108 assertNotNull(webViewClient.getLastShouldOverrideResourceRequest()); in testShouldOverrideUrlLoading()109 assertTrue(webViewClient.getLastShouldOverrideResourceRequest().isForMainFrame()); in testShouldOverrideUrlLoading()110 assertFalse(webViewClient.getLastShouldOverrideResourceRequest().isRedirect()); in testShouldOverrideUrlLoading()111 assertFalse(webViewClient.getLastShouldOverrideResourceRequest().hasGesture()); in testShouldOverrideUrlLoading()188 final MockWebViewClient webViewClient = new MockWebViewClient(); in testLoadPage() local[all …]
554 final SslErrorWebViewClient webViewClient = new SslErrorWebViewClient(mOnUiThread); in testClearSslPreferences() local557 mOnUiThread.setWebViewClient(webViewClient); in testClearSslPreferences()560 assertTrue(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()565 webViewClient.resetWasOnReceivedSslErrorCalled(); in testClearSslPreferences()567 assertTrue(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()572 webViewClient.resetWasOnReceivedSslErrorCalled(); in testClearSslPreferences()574 assertFalse(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()605 final MockWebViewClient webViewClient = new MockWebViewClient(); in testOnReceivedSslError() local606 mOnUiThread.setWebViewClient(webViewClient); in testOnReceivedSslError()610 assertEquals(mWebView, webViewClient.webView()); in testOnReceivedSslError()[all …]
313 final ScaleChangedWebViewClient webViewClient = new ScaleChangedWebViewClient(); in testZoom() local314 mOnUiThread.setWebViewClient(webViewClient); in testZoom()329 webViewClient.waitForScaleChanged(); in testZoom()336 webViewClient.waitForScaleChanged(); in testZoom()343 webViewClient.waitForScaleChanged(); in testZoom()350 webViewClient.waitForScaleChanged(); in testZoom()361 webViewClient.waitForScaleChanged(); in testZoom()369 webViewClient.waitForScaleChanged(); in testZoom()386 webViewClient.waitForScaleChanged(); in testZoom()394 webViewClient.waitForScaleChanged(); in testZoom()[all …]
109 final WebViewClient webViewClient = new WaitForLoadedClient(this); in WebViewOnUiThread() local114 mWebView.setWebViewClient(webViewClient); in WebViewOnUiThread()175 public void setWebViewClient(final WebViewClient webViewClient) { in setWebViewClient() argument179 mWebView.setWebViewClient(webViewClient); in setWebViewClient()