Commit 3dbc683e authored by Siddhartha's avatar Siddhartha Committed by Commit Bot

Fix OverviewListLayoutTest.testCanCloseWithCloseButton for chrome modern

R=twellington@chromium.org

Change-Id: I074521c0835fe6d71cfa19fef359cd2f6bd42db9
Reviewed-on: https://chromium-review.googlesource.com/1178561Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Siddhartha S <ssid@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583806}
parent d3e0292c
......@@ -218,8 +218,13 @@ public class OverviewListLayoutTest {
}
});
TestTouchUtils.performClickOnMainSync(
InstrumentationRegistry.getInstrumentation(), item.findViewById(R.id.close_btn));
if (FeatureUtilities.isChromeModernDesignEnabled()) {
TestTouchUtils.performClickOnMainSync(InstrumentationRegistry.getInstrumentation(),
item.findViewById(R.id.close_btn_modern));
} else {
TestTouchUtils.performClickOnMainSync(InstrumentationRegistry.getInstrumentation(),
item.findViewById(R.id.close_btn));
}
didReceiveClosureCommittedHelper.waitForCallback(0);
......
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