Fix ChromeVoxBackgroundTest.NoFocusTalkBackEnabled
Without this change, ChromeVoxBackgroundTest.NoFocusTalkBackEnabled was passing regardless of TalkBack toggled status. This is because MockFeedback runs all of the callbacks when replay() is called, and when utteranceInQueue is called in the test, any action has not been invoked yet. This change moves the utterance check after executing replay(). AX-Relnotes: n/a. Bug: none. Test: ChromeVoxBackgroundTest.NoFocusTalkBackEnabled, fails if TalkBack is disabled, and passes if TalkBack is enabled. Change-Id: Ide42b8811a7cb91d82d7dfb242ae318c4cf0c760 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2362488 Commit-Queue: Hiroki Sato <hirokisato@chromium.org> Reviewed-by:Akihiro Ota <akihiroota@chromium.org> Cr-Commit-Position: refs/heads/master@{#799465}
Showing
Please register or sign in to comment