• bsheedy's avatar
    Fix VrShellTransitionTest#testStartActivityTriggersDoff* · 55863526
    bsheedy authored
    Implements two fixes that were causing testStartActivityTriggersDoff* to
    fail 100% of the time.
    
    1. Waits until the UI is quiescent after starting the activity, as
    previously, clicks were being sent before the DOFF prompt was visible,
    causing the test to time out.
    
    2. Applies a small deadzone to the head offset used for repositioning
    the VR controller on 6DOF devices. Even on 3DOF devices, the offset
    drifted within a very tiny area, which cause the controller to be
    perpetually dirty and prevent the UI from reaching quiescence.
    
    Bug: 831589, 848074
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
    Change-Id: Ic912dd3aa92ac2102c34e4acc330447a3ce0ca8d
    Reviewed-on: https://chromium-review.googlesource.com/1087723
    Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
    Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#564970}
    55863526
vr_controller.cc 12.5 KB