eventutils.rst (1622B)
1 EventUtils documentation 2 ======================== 3 4 ``EventUtils``' methods are available in all browser mochitests on the ``EventUtils`` 5 object. 6 7 In mochitest-plain and mochitest-chrome, you can load 8 ``"chrome://mochikit/content/tests/SimpleTest/EventUtils.js"`` using a regular 9 HTML script tag to gain access to this set of utilities. In this case, all the 10 documented methods here are **not** on a separate object, but available as global 11 functions. 12 13 Mouse input 14 ----------- 15 16 .. js:autofunction:: EventUtils.sendMouseEvent 17 .. js:autofunction:: EventUtils.synthesizeMouse 18 .. js:autofunction:: EventUtils.synthesizeMouseAtCenter 19 .. js:autofunction:: EventUtils.synthesizeNativeMouseEvent 20 .. js:autofunction:: EventUtils.synthesizeMouseExpectEvent 21 22 .. js:autofunction:: EventUtils.synthesizeWheel 23 .. js:autofunction:: EventUtils.synthesizeWheelAtPoint 24 .. js:autofunction:: EventUtils.sendWheelAndPaint 25 .. js:autofunction:: EventUtils.sendWheelAndPaintNoFlush 26 27 Keyboard input 28 -------------- 29 30 .. js:autofunction:: EventUtils.sendKey 31 .. js:autofunction:: EventUtils.sendChar 32 .. js:autofunction:: EventUtils.sendString 33 .. js:autofunction:: EventUtils.synthesizeKey 34 .. js:autofunction:: EventUtils.synthesizeNativeKey 35 .. js:autofunction:: EventUtils.synthesizeKeyExpectEvent 36 37 Drag and drop 38 ------------- 39 40 .. js:autofunction:: EventUtils.synthesizeDragOver 41 .. js:autofunction:: EventUtils.synthesizeDrop 42 .. js:autofunction:: EventUtils.synthesizeDropAfterDragOver 43 .. js:autofunction:: EventUtils.synthesizePlainDragAndDrop 44 .. js:autofunction:: EventUtils.synthesizePlainDragAndCancel 45 .. js:autofunction:: EventUtils.sendDragEvent