am db9230a3: am ead37b5c: Avoiding a race condition in testOnReceivedIcon.

Merge commit 'db9230a3fffa563bc173f416743acf49f0d9b6b5' into gingerbread-plus-aosp

* commit 'db9230a3fffa563bc173f416743acf49f0d9b6b5':
  Avoiding a race condition in testOnReceivedIcon.
diff --git a/tests/tests/webkit/src/android/webkit/cts/WebChromeClientTest.java b/tests/tests/webkit/src/android/webkit/cts/WebChromeClientTest.java
index 40c6c93..b95f9c2 100644
--- a/tests/tests/webkit/src/android/webkit/cts/WebChromeClientTest.java
+++ b/tests/tests/webkit/src/android/webkit/cts/WebChromeClientTest.java
@@ -119,13 +119,14 @@
             args = {WebView.class, Bitmap.class}
         )
     })
-    public void testOnReceivedIcon() {
+    public void testOnReceivedIcon() throws Exception {
         final MockWebChromeClient webChromeClient = new MockWebChromeClient();
         mWebView.setWebChromeClient(webChromeClient);
 
         WebIconDatabase mIconDb = WebIconDatabase.getInstance();
         String dbPath = getActivity().getFilesDir().toString() + "/icons";
         mIconDb.open(dbPath);
+        Thread.sleep(250);
         mIconDb.removeAllIcons();
 
         assertFalse(webChromeClient.hadOnReceivedIcon());