Skip to content

Commit

Permalink
Bug 1847086 - Document that layout reftests have SpecialPowers access…
Browse files Browse the repository at this point in the history
…. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D185344
  • Loading branch information
dlrobertson committed Aug 15, 2023
1 parent 452861d commit 997351a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions layout/docs/Reftest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,17 @@ Setting the "reftest-no-sync-layers" attribute on the root element skips this
step, enabling testing that layer-tree updates are being correctly generated.
However the test must manually wait for a MozAfterPaint event before ending.

SpecialPowers
-------------

Some tests may require synthesized user input events or other functions that
normally cannot be run from a typical script. Layout reftests have access to
`SpecialPowers` for such cases.

Test authors have ability to access the privilegd `nsIDOMWindowUtils` interface
using `SpecialPowers.getDOMWindowUtils(window)`. The interface contains many
interesting abilities, including event synthesization.

Debugging Failures
------------------

Expand Down

0 comments on commit 997351a

Please sign in to comment.