Files
tubestation/accessible/tests/browser/performance
James Teh fdf464542a Bug 1962317: Initial framework for accessibility engine performance testing, plus some initial tests. r=morgan
Tests go in accessible/tests/browser/performance.
They use the usual addAccessibleTask function to add a test.
Inside the task, they can time operations using the timeThis() function, which takes a name and a function to time.
As well as logging the time, this also logs all accessibility PerfStats captured during the function.
For now, output is simply logged using info().
In future, we may wish to output this data elsewhere; e.g. so it can be picked up by performance monitoring tools.
Having this single function should make extending this fairly easy without needing to rewrite tests.

Two initial tests have been included:
- browser_manyMutations.js: Test for bug 1948375.
- browser_spellingErrors.js: Test for bug 1961832.

Differential Revision: https://phabricator.services.mozilla.com/D246544
2025-04-30 04:06:36 +00:00
..