Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix timeout in svg-mouse-listener a11y test
The recommended approach to make a crash test asynchronous is to use reftest-wait. Unfortunately, test-driver does not work with ref-tests. The fix is to pull the test out of crashtests and author as a promise test. This is the only a11y crash test that uses test-driver, and thus, the only one that is affected. The test needs to be asynchronous to avoid a memory leak. The reason is due to the fact that we have armed an event listener that is never triggered unless we wait. A crash-test only waits until onload is complete. Bug: 328403023 Change-Id: If33410bd498995b8216e805c8edc27c093e3db1a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5348198 Reviewed-by: Aaron Leventhal <[email protected]> Commit-Queue: Kevin Ellis <[email protected]> Cr-Commit-Position: refs/heads/main@{#1269156}
- Loading branch information