Skip to content
Permalink
Browse files
CB-8845 Pended tests for Android
github close #42
  • Loading branch information
alsorokin authored and sgrebnov committed May 27, 2015
1 parent 4f647eb commit 0514b326662e7981a5d5bec609485a0e41c265d8
Showing 1 changed file with 14 additions and 13 deletions.
@@ -53,7 +53,8 @@ exports.defineAutoTests = function () {
done();
});
},
isWindowsStore = (cordova.platformId == "windows8") || (cordova.platformId == "windows" && !WinJS.Utilities.isPhone);
isWindowsStore = (cordova.platformId == "windows8") || (cordova.platformId == "windows" && !WinJS.Utilities.isPhone),
isAndroid = cordova.platformId == "android";

describe('Geolocation (navigator.geolocation)', function () {

@@ -83,9 +84,9 @@ exports.defineAutoTests = function () {
describe('error callback', function () {

it("geolocation.spec.5 should be called if we set timeout to 0 and maximumAge to a very small number", function (done) {
// this test asks for using geolocation and interrupts autotests running.
// That's why we have to pending that for Windows Store 8.0/8.1 apps
if (isWindowsStore) {
// On Windows, this test prompts user for permission to use geolocation and interrupts autotests running.
// On Android, HTML5 native geolocation is used instead of geolocation plugin. This is not our goal to test it.
if (isWindowsStore || isAndroid) {
pending();
}

@@ -103,9 +104,9 @@ exports.defineAutoTests = function () {
describe('success callback', function () {

it("geolocation.spec.6 should be called with a Position object", function (done) {
// this test asks for using geolocation and interrupts autotests running.
// That's why we have to pending that for Windows Store 8.0/8.1 apps
if (isWindowsStore) {
// On Windows, this test prompts user for permission to use geolocation and interrupts autotests running.
// On Android, HTML5 native geolocation is used instead of geolocation plugin. This is not our goal to test it.
if (isWindowsStore || isAndroid) {
pending();
}

@@ -141,9 +142,9 @@ exports.defineAutoTests = function () {
});

it("geolocation.spec.7 should be called if we set timeout to 0 and maximumAge to a very small number", function (done) {
// this test asks for using geolocation and interrupts autotests running.
// That's why we have to pending that for Windows Store 8.0/8.1 apps
if (isWindowsStore) {
// On Windows, this test prompts user for permission to use geolocation and interrupts autotests running.
// On Android, HTML5 native geolocation is used instead of geolocation plugin. This is not our goal to test it.
if (isWindowsStore || isAndroid) {
pending();
}

@@ -167,9 +168,9 @@ exports.defineAutoTests = function () {
});

it("geolocation.spec.8 should be called with a Position object", function (done) {
// this test asks for using geolocation and interrupts autotests running.
// That's why we have to pending that for Windows Store 8.0/8.1 apps
if (isWindowsStore) {
// On Windows, this test prompts user for permission to use geolocation and interrupts autotests running.
// On Android, HTML5 native geolocation is used instead of geolocation plugin. This is not our goal to test it.
if (isWindowsStore || isAndroid) {
pending();
}

0 comments on commit 0514b32

Please sign in to comment.