зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1847086 - Document that layout reftests have SpecialPowers access. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D185344
This commit is contained in:
Родитель
452861d78d
Коммит
997351a55d
|
@ -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
|
||||
------------------
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче