Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master adfeb49a6 -> 80d9808e3


CB-10083 - Disable whitelist tests for iOS in mobile-spec


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/80d9808e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/80d9808e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/80d9808e

Branch: refs/heads/master
Commit: 80d9808e3aae31361fb880a49c96edc7f89b7613
Parents: adfeb49
Author: Shazron Abdullah <[email protected]>
Authored: Wed Nov 25 16:32:39 2015 -0800
Committer: Shazron Abdullah <[email protected]>
Committed: Wed Nov 25 16:32:39 2015 -0800

----------------------------------------------------------------------
 cordova-plugin-mobilespec-tests/tests/whitelist.tests.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/80d9808e/cordova-plugin-mobilespec-tests/tests/whitelist.tests.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-mobilespec-tests/tests/whitelist.tests.js 
b/cordova-plugin-mobilespec-tests/tests/whitelist.tests.js
index e88d4fb..90a660c 100644
--- a/cordova-plugin-mobilespec-tests/tests/whitelist.tests.js
+++ b/cordova-plugin-mobilespec-tests/tests/whitelist.tests.js
@@ -1,4 +1,4 @@
-/*
+cordova.define("org.apache.cordova.mobilespec.tests.whitelist.tests", 
function(require, exports, module) { /*
  *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -23,6 +23,7 @@ exports.defineAutoTests = function () {
 
     var isWindowsPhone = cordova.platformId == 'windowsphone';
     var isWindows = (cordova.platformId === "windows") || (cordova.platformId 
=== "windows8")
+    var isIOS = (cordova.platformId === "ios");
 
     describe('Whitelist API (cordova.whitelist)', function () {
 
@@ -43,7 +44,7 @@ exports.defineAutoTests = function () {
                         var originalTimeout,
                             cb;
 
-                        if (isWindows || isWindowsPhone) {
+                        if (isWindows || isWindowsPhone || isIOS) {
                             pending();
                         }
 
@@ -153,7 +154,7 @@ exports.defineAutoTests = function () {
                     description = description || ((result ? "should accept " : 
"should reject ") + url);
 
                     describe("Test function", function () {
-                        if (isWindows || isWindowsPhone) {
+                        if (isWindows || isWindowsPhone || isIOS) {
                             pending();
                         }
 
@@ -206,3 +207,5 @@ exports.defineAutoTests = function () {
         });
     });
 }
+
+});


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to