Merge pull request #2624 from sebv/master

Fixing remaining ios71 tests
This commit is contained in:
seb vincent
2014-05-21 16:48:40 +08:00
3 changed files with 5 additions and 5 deletions

View File

@@ -290,7 +290,7 @@ Appium.prototype.invoke = function (cb) {
cb(null, this.device);
}.bind(this);
this.device.start(onStart, this.cleanupSession.bind(this));
this.device.start(onStart, _.once(this.cleanupSession.bind(this)));
}
};

View File

@@ -23,7 +23,7 @@ module.exports = function (desired) {
});
describe('within webview', function () {
function _ignoreEncodingBug(value) {
if (isChrome) {
if (isChrome(desired)) {
console.warn('Going round android bug: whitespace in cookies.');
return encodeURI(value);
} else return value;

View File

@@ -11,9 +11,9 @@ describe('uicatalog - move', function () {
it('should be able to click on arbitrary x-y elements', function (done) {
driver
.elementByClassName('UIATableCell').moveTo(10, 10).click()
.elementByXPath("//UIAButton[@name='Rounded']")
.should.eventually.exist
.elementByXPath("//UIAStaticText[contains(@name, 'Buttons')]").moveTo(10, 10).click()
.elementByXPath("//UIAElement['SYSTEM (CONTACT ADD)']")
.should.eventually.exist .should.eventually.exist
.nodeify(done);
});
});