Bug 1847086 - Document that layout reftests have SpecialPowers access. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D185344
This commit is contained in:
Dan Robertson 2023-08-15 00:20:54 +00:00
Родитель 452861d78d
Коммит 997351a55d
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -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
------------------