Commit 6b84f73e authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

Speculative fix for

ContextualSuggestionsTest#testPeekWithPageScrollPercentage

+ Set screen orientation to portrait

Bug: 847340
Change-Id: I05e6bd2f0e76026f36b87433e10fa936858e4e38
Reviewed-on: https://chromium-review.googlesource.com/1098222Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566906}
parent 547058bf
......@@ -11,6 +11,7 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import android.content.pm.ActivityInfo;
import android.os.SystemClock;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.LargeTest;
......@@ -621,10 +622,15 @@ public class ContextualSuggestionsTest {
}
@Test
@FlakyTest(message = "https://crbug.com/850117")
@MediumTest
@Feature({"ContextualSuggestions"})
public void testPeekWithPageScrollPercentage() throws Exception {
// Set the screen orientation to portrait since we scroll the web contents in absolute
// pixels in the test.
mActivityTestRule.getActivity().setRequestedOrientation(
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
InstrumentationRegistry.getInstrumentation().waitForIdleSync();
CallbackHelper scrollChangedCallback = new CallbackHelper();
GestureStateListener gestureStateListener = new GestureStateListener() {
@Override
......
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