Commit 3e18a519 authored by Wenyu Fu's avatar Wenyu Fu Committed by Chromium LUCI CQ

Add dummy view in RadioButtonWith*LayoutTest

Fix the flaky test by adding a dummy view. This helps collecting the
focus when it is cleared in RadioButtonWithEditText. This is however a
short-term solution and should be revisited with a fix on the widget
itself.

For more details see the original crbug.

Change-Id: Ibae61514ffc98c253db4a8bd63498967178d523f
Bug: 1169215
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2644935
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#846271}
parent f2e1adff
......@@ -8,6 +8,14 @@
android:layout_width="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!-- Dummy view used to collect focus when RadioButtonWithEditText loses focus.
TODO(https://crbug.com/11692150): Remove this. -->
<View
android:layout_height="1dp"
android:layout_width="match_parent"
android:focusable="true"
android:focusableInTouchMode="true" />
<org.chromium.components.browser_ui.widget.RadioButtonWithDescriptionLayout
android:id="@+id/test_radio_button_layout"
android:layout_width="match_parent"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment