diff options
author | Feng Qian <fqian@google.com> | 2009-08-13 14:54:56 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-08-13 14:54:56 -0700 |
commit | 2890920eba98a5c62bb2ff62323052328e9492e5 (patch) | |
tree | ea638f649b958f9a559b85ab59c7dc5520ca9076 /tests | |
parent | bcda5e039ff44d3510d18857ba4538e38c619d21 (diff) | |
download | frameworks_base-2890920eba98a5c62bb2ff62323052328e9492e5.zip frameworks_base-2890920eba98a5c62bb2ff62323052328e9492e5.tar.gz frameworks_base-2890920eba98a5c62bb2ff62323052328e9492e5.tar.bz2 |
Set V8 flag --expose_gc in TestShellActivity.
Page cycler calls window.gc between pages, JSC exposes window.gc by default, and V8 requires the flag to be set.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java index 7e80370..e060388 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java @@ -112,6 +112,11 @@ public class TestShellActivity extends Activity implements LayoutTestController mWebView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL); + // Expose window.gc function to JavaScript. JSC build exposes + // this function by default, but V8 requires the flag to turn it on. + // WebView::setJsFlags is noop in JSC build. + mWebView.setJsFlags("--expose_gc"); + mHandler = new AsyncHandler(); Intent intent = getIntent(); |