fix tests for use of api level 18 emulator

This commit is contained in:
Jonathan Lipps
2013-09-05 14:44:39 -07:00
parent ab709a65f6
commit cd01a5a014
3 changed files with 10 additions and 11 deletions

View File

@@ -132,7 +132,7 @@ describeWd('find element(s)', function(h) {
it('should find multiple elements by resource-id', function(done) {
h.driver.elementsById('android:id/text1', function(err, els) {
should.not.exist(err);
els.length.should.equal(11);
els.length.should.equal(10);
done();
});
});
@@ -261,11 +261,3 @@ describeWd('unallowed tag names', function(h) {
});
});
describeWd('mobile xmlKeyContains', function(h) {
it('should not error on xmlKeyContains', function(done) {
h.driver.execute("mobile: xmlKeyContains", [''], function(err, el) {
should.not.exist(err);
done();
});
});
});

View File

@@ -16,7 +16,7 @@ describeWd('get source', function(h) {
should.not.exist(err);
should.ok(obj);
obj.hierarchy.node['@class'].should.equal("android.widget.FrameLayout");
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.view.View");
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.widget.FrameLayout");
done();
});
});
@@ -28,7 +28,7 @@ describeWd('get source', function(h) {
should.not.exist(err);
should.ok(obj);
obj.hierarchy.node['@class'].should.equal("android.widget.FrameLayout");
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.view.View");
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.widget.FrameLayout");
h.driver.execute("mobile: find", [[[[7, "Animation"]]]], function(err, el) {
should.not.exist(err);
done();

View File

@@ -92,4 +92,11 @@ describeWd('web view', function(h) {
done();
});
});
it('should get web source', function(done) {
h.driver.source(function(err, source) {
should.not.exist(err);
source.should.include("body");
done();
});
});
});