Bug 1439288 - Remove synthesizeCompositionEvent. r?ato
MozReview-Commit-ID: FFz2Z8le7GG
--- a/testing/marionette/event.js
+++ b/testing/marionette/event.js
@@ -1012,34 +1012,16 @@ event.synthesizeKeyExpectEvent = functio
checkExpectedEvent_(
expectedTarget,
expectedEvent,
eventHandler,
testName);
};
/**
- * Synthesize a composition event.
- *
- * @param {DOMEvent} ev
- * The composition event information. This must have |type|
- * member. The value must be "compositionstart", "compositionend" or
- * "compositionupdate". And also this may have |data| and |locale|
- * which would be used for the value of each property of the
- * composition event. Note that the data would be ignored if the
- * event type were "compositionstart".
- * @param {Window=} window
- * Window object. Defaults to the current window.
- */
-event.synthesizeComposition = function(ev, window = undefined) {
- let domutils = getDOMWindowUtils(window);
- domutils.sendCompositionEvent(ev.type, ev.data || "", ev.locale || "");
-};
-
-/**
* Synthesize a query selected text event.
*
* @param {Window=}
* Window object. Defaults to the current window.
*
* @return {(nsIQueryContentEventResult|null)}
* Event's result, or null if it failed.
*/