Fix lint and spacing

This commit is contained in:
bootstraponline
2013-06-30 10:02:05 -04:00
parent 3546d7c9be
commit 16986cfa69
2 changed files with 26 additions and 27 deletions
+2 -2
View File
@@ -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) {
+24 -25
View File
@@ -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();
});
});
});
});
});
});
});