Commit 4ef7a591 authored by Brian Sheedy's avatar Brian Sheedy Committed by Commit Bot

Add workaround for VR consent test failures

Adds a temporary sleep to testConsentPersistsLowerLevel and
testConsentPersistsSameLevel to see if it fixes failures on P.

TBR=alcooper@chromium.org

Bug: 998307
Change-Id: I56183327330ad2c027c5c01afecd3e53e6c7c102
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773898Reviewed-by: default avatarBrian Sheedy <bsheedy@chromium.org>
Reviewed-by: default avatarAlexander Cooper <alcooper@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690920}
parent a46fd819
...@@ -9,6 +9,7 @@ import static org.chromium.chrome.browser.vr.XrTestFramework.POLL_TIMEOUT_LONG_M ...@@ -9,6 +9,7 @@ import static org.chromium.chrome.browser.vr.XrTestFramework.POLL_TIMEOUT_LONG_M
import static org.chromium.chrome.browser.vr.XrTestFramework.POLL_TIMEOUT_SHORT_MS; import static org.chromium.chrome.browser.vr.XrTestFramework.POLL_TIMEOUT_SHORT_MS;
import android.os.Build; import android.os.Build;
import android.os.SystemClock;
import android.support.test.filters.MediumTest; import android.support.test.filters.MediumTest;
import org.junit.Before; import org.junit.Before;
...@@ -97,6 +98,9 @@ public class WebXrVrConsentTest { ...@@ -97,6 +98,9 @@ public class WebXrVrConsentTest {
mWebXrVrConsentTestFramework.enterSessionWithUserGestureOrFail(); mWebXrVrConsentTestFramework.enterSessionWithUserGestureOrFail();
mWebXrVrConsentTestFramework.endSessionOrFail(); mWebXrVrConsentTestFramework.endSessionOrFail();
// TODO(https://crbug.com/998307): Remove this once root cause of entering VRB is found.
SystemClock.sleep(1000);
mWebXrVrConsentTestFramework.setConsentDialogExpected(false); mWebXrVrConsentTestFramework.setConsentDialogExpected(false);
mWebXrVrConsentTestFramework.enterSessionWithUserGestureOrFail(); mWebXrVrConsentTestFramework.enterSessionWithUserGestureOrFail();
...@@ -140,6 +144,9 @@ public class WebXrVrConsentTest { ...@@ -140,6 +144,9 @@ public class WebXrVrConsentTest {
mWebXrVrConsentTestFramework.enterSessionWithUserGestureOrFail(); mWebXrVrConsentTestFramework.enterSessionWithUserGestureOrFail();
mWebXrVrConsentTestFramework.endSessionOrFail(); mWebXrVrConsentTestFramework.endSessionOrFail();
// TODO(https://crbug.com/998307): Remove this once root cause of entering VRB is found.
SystemClock.sleep(1000);
// Now set up to request the lower level of consent. The session should be entered without // Now set up to request the lower level of consent. The session should be entered without
// the consent prompt. // the consent prompt.
mWebXrVrConsentTestFramework.setConsentDialogExpected(false); mWebXrVrConsentTestFramework.setConsentDialogExpected(false);
......
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