Bug 1280947 - Correct argument to event.sendEvent; r=automatedtester

Events were not registered when constructed with an object
rather than a string literal.

MozReview-Commit-ID: KhXcDPu70Vm

--HG--
extra : rebase_source : 7ea228e47c89c2775ab5c2c1fab63b5f8fe4db14
This commit is contained in:
Andreas Tolfsen 2016-08-25 14:16:10 +01:00
parent aa96362477
commit e213d0d9c5

View File

@ -1306,29 +1306,29 @@ event.focus = function(el, opts = {}) {
};
event.mouseover = function(el, modifiers = {}, opts = {}) {
return event.sendEvent({type: "mouseover"}, el, modifiers, opts);
return event.sendEvent("mouseover", el, modifiers, opts);
};
event.mousemove = function(el, modifiers = {}, opts = {}) {
return event.sendEvent({type: "mousemove"}, el, modifiers, opts);
return event.sendEvent("mousemove", el, modifiers, opts);
};
event.mousedown = function(el, modifiers = {}, opts = {}) {
return event.sendEvent({type: "mousedown"}, el, modifiers, opts);
return event.sendEvent("mousedown", el, modifiers, opts);
};
event.mouseup = function(el, modifiers = {}, opts = {}) {
return event.sendEvent({type: "mouseup"}, el, modifiers, opts);
return event.sendEvent("mouseup", el, modifiers, opts);
};
event.click = function(el, modifiers = {}, opts = {}) {
return event.sendEvent({type: "click"}, el, modifiers, opts);
return event.sendEvent("click", el, modifiers, opts);
};
event.change = function(el, modifiers = {}, opts = {}) {
return event.sendEvent({type: "change"}, el, modifiers, opts);
return event.sendEvent("change", el, modifiers, opts);
};
event.input = function(el, modifiers = {}, opts = {}) {
return event.sendEvent({type: "input"}, el, modifiers, opts);
return event.sendEvent("input", el, modifiers, opts);
};