Skip to content

Commit

Permalink
make ios tests a bit more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Jan 17, 2014
1 parent 50ad1d0 commit 0b66158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/functional/testapp/basic.js
Expand Up @@ -108,8 +108,9 @@ describeWd('calc app', function(h) {
var obj = JSON.parse(source);
obj.type.should.equal("UIAApplication");
obj.children[0].type.should.equal("UIAWindow");
console.log(obj.children[0]);
obj.children[0].children[0].label.should.equal("TextField1");
obj.children[0].children[3].name.should.equal("0");
obj.children[0].children[3].name.should.equal("SumLabel");
}).nodeify(done);
});

Expand Down
4 changes: 2 additions & 2 deletions test/functional/testapp/size.js
Expand Up @@ -13,8 +13,8 @@ describeWd('element size', function(h) {

it('should return the window size', function(done) {
h.driver.getWindowSize().then(function(size) {
size.width.should.equal(320);
size.height.should.equal(480);
size.width.should.be.above(319);
size.height.should.be.above(479);
}).nodeify(done);
});
});

0 comments on commit 0b66158

Please sign in to comment.