AW: test Safe Browsing checkbox value
No change to production logic, only changes tests. This adds two new tests to check the Safe Browsing Extended Reporting checkbox: * The checkbox is visible by default * The checkbox can be hidden using onSafeBrowsingHit() This makes no assertion about the default *value* of the checkbox (since this depends on the user's last reporting preference within the browsing session). We're only checking whether it's hidden. This also does some refactoring: * Adds evaluateJavaScriptOnInterstitialOnUiThreadSync() method and uses it where applicable * Renames waitForInterstitialToLoad to waitForInterstitialDomToLoad (to clarify what it actually does) Bug: 738192 Test: run_webview_instrumentation_test_apk -f SafeBrowsingTest#testSafeBrowsing*ReportingCheckbox* Change-Id: Ib1d6cc74c037f60d3c026c87264bf9f768884544 Reviewed-on: https://chromium-review.googlesource.com/896790Reviewed-by:Bo <boliu@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#533767}
Showing
Please register or sign in to comment