The pattern that the test was using, "await requestAnimationFrame", does nothing because requestAnimationFrame doesn't return a Promise that could be awaited. To actually use 'await' to allow a requestAnimationFrame tick to pass, you need to add your own Promise that gets resolved in requestAnimationFrame's callback, as amended in this patch. Differential Revision: https://phabricator.services.mozilla.com/D242551
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff