Files
Sylvestre Ledru 8f033c8241 Bug 2038819 - Convert testing/**/docs RST to Markdown r=jdescottes,firefox-source-docs-reviewers,ahal
Convert testing/{awsy,condprofile,docs,geckodriver,marionette,
mozbase,mozharness,perfdocs,performance,raptor,talos,web-platform}
RST documentation files to MyST-flavored Markdown.

Skips testing/perfdocs/generated/* (auto-generated by mach perfdocs)
and testing/web-platform/tests/* (third-party test trees).

- Move treeherder-try frontmatter substitutions under the new myst
  topmatter key.
- Allow the pre-existing autodoc Unknown target warning for
  mozprofile.permissions to keep the build clean.
- Refresh allowed-warnings glob for manifest-sandbox download from
  .rst to .md.

Differential Revision: https://phabricator.services.mozilla.com/D304228
2026-07-04 10:18:34 +00:00

101 lines
1.9 KiB
Markdown

# EventUtils documentation
`EventUtils`' methods are available in all browser mochitests on the `EventUtils`
object.
In mochitest-plain and mochitest-chrome, you can load
`"chrome://mochikit/content/tests/SimpleTest/EventUtils.js"` using a regular
HTML script tag to gain access to this set of utilities. In this case, all the
documented methods here are **not** on a separate object, but available as global
functions.
## Mouse input
```{eval-rst}
.. js:autofunction:: EventUtils.sendMouseEvent
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeMouse
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeMouseAtCenter
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeNativeMouseEvent
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeMouseExpectEvent
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeWheel
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeWheelAtPoint
```
```{eval-rst}
.. js:autofunction:: EventUtils.sendWheelAndPaint
```
```{eval-rst}
.. js:autofunction:: EventUtils.sendWheelAndPaintNoFlush
```
## Keyboard input
```{eval-rst}
.. js:autofunction:: EventUtils.sendKey
```
```{eval-rst}
.. js:autofunction:: EventUtils.sendChar
```
```{eval-rst}
.. js:autofunction:: EventUtils.sendString
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeKey
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeNativeKey
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeKeyExpectEvent
```
## Drag and drop
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeDragOver
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeDrop
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizeDropAfterDragOver
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizePlainDragAndDrop
```
```{eval-rst}
.. js:autofunction:: EventUtils.synthesizePlainDragAndCancel
```
```{eval-rst}
.. js:autofunction:: EventUtils.sendDragEvent
```