mirror of
https://github.com/appium/appium.git
synced 2026-05-04 09:20:30 -05:00
24 lines
801 B
JavaScript
24 lines
801 B
JavaScript
"use strict";
|
|
|
|
var describeWd = require("../../helpers/driverblock.js").describeForApp('WebViewApp')
|
|
, it = require("../../helpers/driverblock.js").it
|
|
, _ = require('underscore')
|
|
, should = require('should');
|
|
|
|
describeWd('orientation', function(h) {
|
|
var testOrientation = function(specOrientation) {
|
|
it('should get and set - ' + specOrientation, function(done) {
|
|
h.driver.setOrientation(specOrientation, function(err, orientation) {
|
|
should.not.exist(err);
|
|
orientation.should.eql(specOrientation);
|
|
h.driver.getOrientation(function(err, orientation) {
|
|
should.not.exist(err);
|
|
orientation.should.eql(specOrientation);
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
};
|
|
_.each(["LANDSCAPE", "PORTRAIT"], testOrientation);
|
|
});
|