summaryrefslogtreecommitdiffstats
path: root/android_webview/test
diff options
context:
space:
mode:
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-25 16:06:42 +0000
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-25 16:06:42 +0000
commitf823dc368981ad6fcd67f28fc7cdf4bd2f77abb4 (patch)
tree6d381dd7e9791bc694281541007c6d80c529b260 /android_webview/test
parent00b907e636c41b7753e5dad23ee56d3111eacca6 (diff)
downloadchromium_src-f823dc368981ad6fcd67f28fc7cdf4bd2f77abb4.zip
chromium_src-f823dc368981ad6fcd67f28fc7cdf4bd2f77abb4.tar.gz
chromium_src-f823dc368981ad6fcd67f28fc7cdf4bd2f77abb4.tar.bz2
[android_webview] Make tests draw something other than white.
Setting FLAG_HARDWARE_ACCELERATED when we only support software rendering leads to the test activity always rendering white. Also, setting the root layout to MATCH_PARENT as that's a saner default. BUG=None TEST=AndroidWebViewTest // android_webview-only, trybots are happy with the CL. NOTRY=true Review URL: https://codereview.chromium.org/44433002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/test')
-rw-r--r--android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java16
1 files changed, 2 insertions, 14 deletions
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
index 7e03d4f..ba3b2b9 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
@@ -23,23 +23,11 @@ public class AwTestRunnerActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- // TODO(joth): When SW-renderer is available, we'll want to enable this on a per-test
- // basis.
- boolean hardwareAccelerated = true;
- Log.i("AwTestRunnerActivity", "Is " + (hardwareAccelerated ? "" : "NOT ")
- + "hardware accelerated");
-
- if (hardwareAccelerated) {
- getWindow().setFlags(
- WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
- WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
- }
-
mLinearLayout = new LinearLayout(this);
mLinearLayout.setOrientation(LinearLayout.VERTICAL);
mLinearLayout.setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);
- mLinearLayout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
- LayoutParams.WRAP_CONTENT));
+ mLinearLayout.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,
+ LayoutParams.MATCH_PARENT));
setContentView(mLinearLayout);
}