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

1.9 KiB

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

.. js:autofunction:: EventUtils.sendMouseEvent
.. js:autofunction:: EventUtils.synthesizeMouse
.. js:autofunction:: EventUtils.synthesizeMouseAtCenter
.. js:autofunction:: EventUtils.synthesizeNativeMouseEvent
.. js:autofunction:: EventUtils.synthesizeMouseExpectEvent
.. js:autofunction:: EventUtils.synthesizeWheel
.. js:autofunction:: EventUtils.synthesizeWheelAtPoint
.. js:autofunction:: EventUtils.sendWheelAndPaint
.. js:autofunction:: EventUtils.sendWheelAndPaintNoFlush

Keyboard input

.. js:autofunction:: EventUtils.sendKey
.. js:autofunction:: EventUtils.sendChar
.. js:autofunction:: EventUtils.sendString
.. js:autofunction:: EventUtils.synthesizeKey
.. js:autofunction:: EventUtils.synthesizeNativeKey
.. js:autofunction:: EventUtils.synthesizeKeyExpectEvent

Drag and drop

.. js:autofunction:: EventUtils.synthesizeDragOver
.. js:autofunction:: EventUtils.synthesizeDrop
.. js:autofunction:: EventUtils.synthesizeDropAfterDragOver
.. js:autofunction:: EventUtils.synthesizePlainDragAndDrop
.. js:autofunction:: EventUtils.synthesizePlainDragAndCancel
.. js:autofunction:: EventUtils.sendDragEvent