diff options
author | Guang Zhu <guangzhu@google.com> | 2011-01-14 16:17:20 -0800 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2011-01-14 16:17:20 -0800 |
commit | 4ce6e7c433a9ce8be0d3b08b37143c50a1057115 (patch) | |
tree | e93fc0e2f2194a99e4dd192cffa4d7a7ed0a1a36 /tests/DumpRenderTree | |
parent | 6458202abe0c9df932f44223d05761673ba6e9fa (diff) | |
download | frameworks_base-4ce6e7c433a9ce8be0d3b08b37143c50a1057115.zip frameworks_base-4ce6e7c433a9ce8be0d3b08b37143c50a1057115.tar.gz frameworks_base-4ce6e7c433a9ce8be0d3b08b37143c50a1057115.tar.bz2 |
when test case times out, stop loading first
current timeout mechanism does a text dump and then move to next case.
sometimes the text dump causes WebView to spin, and doing a
stopLoading seems to resolve some of the cases.
Change-Id: Iae08f9c93b2da3e805cacae43f80083fdf1bc5e1
Diffstat (limited to 'tests/DumpRenderTree')
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java index 9ccb3ee..a3466e2 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java @@ -75,6 +75,7 @@ public class TestShellActivity extends Activity implements LayoutTestController public void handleMessage(Message msg) { if (msg.what == MSG_TIMEOUT) { mTimedOut = true; + mWebView.stopLoading(); if (mCallback != null) mCallback.timedOut(mWebView.getUrl()); if (!mRequestedWebKitData) { |