remove 'mobile: fireEvent'

This commit is contained in:
Jonathan Lipps
2014-04-09 18:38:23 -07:00
parent b0fdf70de2
commit afe4674f4a
4 changed files with 0 additions and 24 deletions

View File

@@ -191,10 +191,6 @@ androidController.touchMove = function (elementId, x, y, cb) {
this.proxy(["element:touchMove", opts], cb);
};
androidController.fireEvent = function (evt, elementId, value, cb) {
cb(new NotYetImplementedError(), null);
};
androidController.getStrings = function (cb) {
this.proxy(["getStrings"], cb);
};

View File

@@ -244,7 +244,6 @@ Firefox.prototype.notImplementedCmds = function () {
, 'findElements'
, 'findElementFromElement'
, 'findElementsFromElement'
, 'fireEvent'
, 'complexTap'
, 'flick'
, 'touchLongClick'

View File

@@ -523,16 +523,6 @@ iOSController.getStrings = function (cb) {
});
};
iOSController.fireEvent = function (evt, elementId, cb) {
if (this.isWebContext()) {
this.useAtomsElement(elementId, cb, function (atomsElement) {
this.executeAtom('fireEvent', [evt, atomsElement], cb);
}.bind(this));
} else {
cb(new NotImplementedError(), null);
}
};
iOSController.executeAtom = function (atom, args, cb, alwaysDefaultFrame) {
var counter = this.executedAtomsCounter++;
var frames = alwaysDefaultFrame === true ? [] : this.curWebFrames;

View File

@@ -321,14 +321,6 @@ exports.touchMove = function (req, res) {
}
};
exports.fireEvent = function (req, res) {
logCustomDeprecationWarning('mobile method', 'fireEvent',
"fireEvent will be removed in a future version of Appium");
var elementId = req.body.element
, evt = req.body.event;
req.device.fireEvent(evt, elementId, getResponseHandler(req, res));
};
exports.mobileTap = function (req, res) {
req.body = _.defaults(req.body, {
tapCount: 1
@@ -1072,7 +1064,6 @@ var mobileCmdMap = {
, 'lock' : exports.lock
, 'background' : exports.background
, 'keyevent' : exports.keyevent
, 'fireEvent': exports.fireEvent
, 'find': exports.find
, 'waitForPageLoad': exports.waitForPageLoad
, 'currentActivity': exports.getCurrentActivity