Reland preservesPitch test deflake, fix timeouts
This CL relands "Deflake preservesPitch tests", which was reverted by: commit f19f3404. It also attempts to incorporate some of the WPT changes made upstream, but not yet landed, in: https://github.com/web-platform-tests/wpt/pull/24599 Specifically, it fixes typos in the Safari prefixes, and explicitly starts the audio context. However, it is different from the PR, since it reuses the same Audio element, MediaElementAudioSourceNode and AudioContext. This is an attempt to cut down on overhead costs and fix test timeouts. We instead reset the audio.currentTime to 0, and only create a new analyser node for each test. Bug: 1105877, 1096238 Change-Id: Ie528ec0b7c38d9df59fcb04696c810e6d1c232f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2300929 Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Reviewed-by:Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#789262}
Showing
Please register or sign in to comment