Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/FocusedEditableTextFieldZoomTest.java

Issue 2573263002: Catch InterruptedException in CriteriaHelper (Closed)
Patch Set: Change OverviewModeBehaviorWatcher back to try/finally Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/FocusedEditableTextFieldZoomTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/FocusedEditableTextFieldZoomTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/FocusedEditableTextFieldZoomTest.java
index 89dcab451a91a2f0866c661693bccb04b48c5630..82e16041bd8db5eb1568a352b3bc3d633389f702 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/FocusedEditableTextFieldZoomTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/FocusedEditableTextFieldZoomTest.java
@@ -46,7 +46,7 @@ public class FocusedEditableTextFieldZoomTest extends ChromeActivityTestCaseBase
super.tearDown();
}
- void waitForInitialZoom() throws InterruptedException {
+ void waitForInitialZoom() {
// The zoom level sometimes changes immediately after the page loads which makes grabbing
// the initial value problematic. We solve this by explicitly specifying the initial zoom
// level via the viewport tag and waiting for the zoom level to reach that value before we
@@ -60,8 +60,8 @@ public class FocusedEditableTextFieldZoomTest extends ChromeActivityTestCaseBase
}, TEST_TIMEOUT, DEFAULT_POLLING_INTERVAL);
}
- private void waitForZoomIn(final ContentViewCore contentViewCore, final float initialZoomLevel)
- throws InterruptedException {
+ private void waitForZoomIn(final ContentViewCore contentViewCore,
+ final float initialZoomLevel) {
CriteriaHelper.pollInstrumentationThread(new Criteria() {
@Override
public boolean isSatisfied() {

Powered by Google App Engine
This is Rietveld 408576698