You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2016/08/02 10:05:47 UTC
cordova-plugin-camera git commit: CB-11656 (Android) Appium tests:
Fixed side menu opening on certain resolutions
Repository: cordova-plugin-camera
Updated Branches:
refs/heads/master c13e9f327 -> 5807458a1
CB-11656 (Android) Appium tests: Fixed side menu opening on certain resolutions
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/5807458a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/5807458a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/5807458a
Branch: refs/heads/master
Commit: 5807458a1d5d58bb84f0b060bc069b4b50d2215b
Parents: c13e9f3
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Tue Aug 2 13:05:01 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Tue Aug 2 13:05:12 2016 +0300
----------------------------------------------------------------------
appium-tests/android/android.spec.js | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/5807458a/appium-tests/android/android.spec.js
----------------------------------------------------------------------
diff --git a/appium-tests/android/android.spec.js b/appium-tests/android/android.spec.js
index 6c91609..eb65153 100644
--- a/appium-tests/android/android.spec.js
+++ b/appium-tests/android/android.spec.js
@@ -118,12 +118,12 @@ describe('Camera tests Android.', function () {
tapTile
.tap({
x: Math.round(screenWidth / 4),
- y: Math.round(screenHeight / 5)
+ y: Math.round(screenHeight / 4)
});
swipeRight
.press({x: 10, y: 100})
.wait(300)
- .moveTo({x: Math.round(screenWidth / 2), y: 0})
+ .moveTo({x: Math.round(screenWidth - (screenWidth / 8)), y: 0})
.release()
.wait(1000);
if (options.allowEdit) {
@@ -306,8 +306,8 @@ describe('Camera tests Android.', function () {
.context(webviewContext)
.execute(function () {
return {
- 'width': window.innerWidth,
- 'height': window.innerHeight
+ 'width': screen.availWidth,
+ 'height': screen.availHeight
};
}, [])
.then(function (size) {
@@ -330,8 +330,10 @@ describe('Camera tests Android.', function () {
})
.then(function () {
cameraAvailable = true;
+ }, function () {
+ return recreateSession();
})
- .finally(done);
+ .done(done);
}, 5 * MINUTE);
describe('Specs.', function () {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org