summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2010-12-16 17:18:06 -0800
committerGuang Zhu <guangzhu@google.com>2010-12-16 17:18:06 -0800
commit2c82138d9e347120e5a4d6f5555484f8ef718f5f (patch)
treebf72fca76e1ca9fe7c82668a907e0eaea821f326
parent39772c83f8e210eed1186b66f5f4841aa41776ee (diff)
downloadpackages_apps_Browser-2c82138d9e347120e5a4d6f5555484f8ef718f5f.zip
packages_apps_Browser-2c82138d9e347120e5a4d6f5555484f8ef718f5f.tar.gz
packages_apps_Browser-2c82138d9e347120e5a4d6f5555484f8ef718f5f.tar.bz2
throw RuntimeException if failed to stop a timedout site
this situation usually happens when WebView is spinning or deadlocked on something, throwing a RuntimeException will make this kind of error more noticeable Change-Id: Id2f495494f67206830fd9d9e8a4bc2b175e82614
-rw-r--r--tests/src/com/android/browser/PopularUrlsTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/browser/PopularUrlsTest.java b/tests/src/com/android/browser/PopularUrlsTest.java
index e407194..5e367be 100644
--- a/tests/src/com/android/browser/PopularUrlsTest.java
+++ b/tests/src/com/android/browser/PopularUrlsTest.java
@@ -294,7 +294,7 @@ public class PopularUrlsTest extends ActivityInstrumentationTestCase2<BrowserAct
// try to wait for count down latch again
timedout = !mLatch.await(5000, TimeUnit.MILLISECONDS);
if (timedout) {
- Log.e(TAG, "failed to stop the timedout site in 5s");
+ throw new RuntimeException("failed to stop timedout site, is browser pegged?");
}
}
}