Commit a684f9e3 authored by Michael Thiessen's avatar Michael Thiessen Committed by Commit Bot

Fix TouchlessNavigationRecorderTest

The test was launching the NTP from the wrong thread.

Change-Id: I99f72187c2ce8d129ed388f7f712795c95aa364e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1752553
Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org>
Reviewed-by: default avatarMehran Mahmoudi <mahmoudi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686532}
parent 22cf834c
...@@ -85,8 +85,10 @@ public class TouchlessNavigationRecorderTest { ...@@ -85,8 +85,10 @@ public class TouchlessNavigationRecorderTest {
ChromeTabUtils.waitForTabPageLoaded(mInitialTab, (String) null); ChromeTabUtils.waitForTabPageLoaded(mInitialTab, (String) null);
// This will trigger an intent and use PageTransition.FROM_API. TestThreadUtils.runOnUiThreadBlocking(() -> {
mActivityTestRule.getActivity().getTabCreator(false).launchNTP(); // This will trigger an intent and use PageTransition.FROM_API.
mActivityTestRule.getActivity().getTabCreator(false).launchNTP();
});
callback.waitForCallback(0); callback.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