Commit fcb71d1a authored by bsheedy's avatar bsheedy Committed by Commit Bot

Work around VR controller disconnect flakiness

Adds a sleep (ew) after entering presentation in VR tests for testing
that the Daydream controller's app buton exits presentation. This works
around a VrCore issue when skipping the DON flow that causes the
controller to briefly disconnect and reconnect when entering VR, eating
any controller input that's sent during that time.

Bug: 870031
Change-Id: Id888826907c9548120d36b0dde67e30271d4bc85
Reviewed-on: https://chromium-review.googlesource.com/1159398Reviewed-by: default avatarAmirhossein Simjour <asimjour@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580225}
parent 958e526c
...@@ -386,6 +386,10 @@ public class WebXrVrInputTest { ...@@ -386,6 +386,10 @@ public class WebXrVrInputTest {
throws InterruptedException { throws InterruptedException {
framework.loadUrlAndAwaitInitialization(url, PAGE_LOAD_TIMEOUT_S); framework.loadUrlAndAwaitInitialization(url, PAGE_LOAD_TIMEOUT_S);
framework.enterSessionWithUserGestureOrFail(); framework.enterSessionWithUserGestureOrFail();
// TODO(https://crbug.com/870031): Remove this sleep if/when the controller disconnect/
// reconnect issue caused by DON flow skipping that flakily eats the app button press is
// resolved.
SystemClock.sleep(500);
EmulatedVrController controller = new EmulatedVrController(mTestRule.getActivity()); EmulatedVrController controller = new EmulatedVrController(mTestRule.getActivity());
controller.pressReleaseAppButton(); controller.pressReleaseAppButton();
assertAppButtonEffect(true /* shouldHaveExited */, framework); assertAppButtonEffect(true /* shouldHaveExited */, framework);
......
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