mirror of
https://github.com/appium/appium.git
synced 2026-04-28 14:30:27 -05:00
Fix lint and spacing
This commit is contained in:
@@ -176,8 +176,8 @@ UIAElement.prototype.isSelected = function() {
|
||||
return {
|
||||
status: codes.Success.code,
|
||||
value: this.value() === 1
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// does a flick from a center of a specified element (use case: sliders)
|
||||
UIAElement.prototype.touchFlick = function(xoffset, yoffset) {
|
||||
|
||||
@@ -37,32 +37,31 @@ describeWd('basic', function(h) {
|
||||
});
|
||||
});
|
||||
it('should confirm element is selected', function(done) {
|
||||
h.driver.elementByXPath("text[contains(@text, 'Picker')]", function(err, el) {
|
||||
el.click(function() {
|
||||
h.driver.elementByXPath("button[contains(@text, 'UIPicker')]", function(err, el1) {
|
||||
should.not.exist(err);
|
||||
el1.selected(function(err, val) {
|
||||
should.not.exist(err);
|
||||
val.should.equal(true);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
h.driver.elementByXPath("text[contains(@text, 'Picker')]", function(err, el) {
|
||||
el.click(function() {
|
||||
h.driver.elementByXPath("button[contains(@text, 'UIPicker')]", function(err, el1) {
|
||||
should.not.exist(err);
|
||||
el1.selected(function(err, val) {
|
||||
should.not.exist(err);
|
||||
val.should.equal(true);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
it('should confirm element is not selected returns false', function(done) {
|
||||
h.driver.elementByXPath("text[contains(@text, 'Picker')]", function(err, el) {
|
||||
el.click(function() {
|
||||
h.driver.elementByXPath("button[contains(@text, 'Custom')]", function(err, el1) {
|
||||
should.not.exist(err);
|
||||
el1.selected(function(err, val) {
|
||||
should.not.exist(err);
|
||||
val.should.equal(false);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
it('should confirm element is not selected returns false', function(done) {
|
||||
h.driver.elementByXPath("text[contains(@text, 'Picker')]", function(err, el) {
|
||||
el.click(function() {
|
||||
h.driver.elementByXPath("button[contains(@text, 'Custom')]", function(err, el1) {
|
||||
should.not.exist(err);
|
||||
el1.selected(function(err, val) {
|
||||
should.not.exist(err);
|
||||
val.should.equal(false);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user