Skip to content

Commit

Permalink
Added setOrientation test + test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebv committed Nov 13, 2013
1 parent 188c6a7 commit 5d9fcd7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ test_e2e_sauce:

test_mobile:
SAUCE_CONNECT=1 SAUCE_JOB_ID=`git rev-parse --short HEAD` mocha \
test/midway/api-exec.js \
test/midway/api-exec-specs.js \
test/midway/mobile-specs.js \
-g "@skip-${BROWSER}" -i

test_android:
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/midway/api-various-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('api-various ' + env.ENV_DESC, function() {
.then(function() {
var res;
try{
res = fs.readFileSync(mydir + '/abc.png', {encoding: 'base64'});
res = fs.readFileSync(mydir + '/abc.png', {encoding: 'base64'});
}catch(err){
// for 0.8
res = fs.readFileSync(mydir + '/abc.png');
Expand Down Expand Up @@ -290,7 +290,7 @@ describe('api-various ' + env.ENV_DESC, function() {
});

it('browser.resolve', function() {
var deferred = Q.defer();
var deferred = Q.defer();
setTimeout(function() {
deferred.resolve('123');
}, 250);
Expand All @@ -310,7 +310,7 @@ describe('api-various ' + env.ENV_DESC, function() {
.setHttpTimeout(env.HTTP_TIMEOUT || 60000).should.be.fulfilled
.setHTTPInactivityTimeout(env.HTTP_TIMEOUT || 60000).should.be.fulfilled
.setHttpTimeout(env.HTTP_TIMEOUT).should.be.fulfilled;
});
});

it('err.inspect', function() {
return browser
Expand Down
15 changes: 15 additions & 0 deletions test/midway/mobile-specs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require('../helpers/setup');

describe('api-various ' + env.ENV_DESC + ' @skip-chrome @skip-firefox @skip-explorer' , function() {

var ctx = require('./midway-base')(this),
// express = ctx.express,
browser;
ctx.browser.then(function(_browser) { browser = _browser; });

it('browser.setOrientation @skip-ios', function() {
return browser
.setOrientation('LANDSCAPE');
});

});

0 comments on commit 5d9fcd7

Please sign in to comment.