From 0ae249e8c773c2adb01c9639113dc224ff7293eb Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Wed, 9 Jun 2021 17:02:22 +0800 Subject: [PATCH] Fix broken tests for main clear pages After ag/14438399, a lot of related tests failed. Create two overlay layout files in robolectric and add original theme style back. It's not perfect, but it didn't affect the behavior of tests, Tests still can build the views and do the original tests. Test: Run robo test Fix: 187819138 Change-Id: I7af0e9e6c61fc204efeea03ec3ca8437aeb2d256 --- tests/robotests/res/layout/main_clear.xml | 136 ++++++++++++++++++ .../res/layout/main_clear_confirm.xml | 40 ++++++ 2 files changed, 176 insertions(+) create mode 100644 tests/robotests/res/layout/main_clear.xml create mode 100644 tests/robotests/res/layout/main_clear_confirm.xml diff --git a/tests/robotests/res/layout/main_clear.xml b/tests/robotests/res/layout/main_clear.xml new file mode 100644 index 00000000000..868d88f6c84 --- /dev/null +++ b/tests/robotests/res/layout/main_clear.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/robotests/res/layout/main_clear_confirm.xml b/tests/robotests/res/layout/main_clear_confirm.xml new file mode 100644 index 00000000000..341e7bbafce --- /dev/null +++ b/tests/robotests/res/layout/main_clear_confirm.xml @@ -0,0 +1,40 @@ + + + + + + + + +