You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2015/03/26 18:51:24 UTC

spec commit: Fix whitelist tests for non-android platforms

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 126c0c411 -> b8401eb3c


Fix whitelist tests for non-android platforms


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/b8401eb3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/b8401eb3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/b8401eb3

Branch: refs/heads/master
Commit: b8401eb3c99573de6e6ae6af952f32d19bd2cd28
Parents: 126c0c4
Author: Ian Clelland <ic...@chromium.org>
Authored: Thu Mar 26 12:59:20 2015 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Thu Mar 26 13:47:31 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/b8401eb3/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 4c7a4e4..09aa8e3 100644
--- a/cordova-plugin-mobilespec-tests/tests/whitelist.tests.js
+++ b/cordova-plugin-mobilespec-tests/tests/whitelist.tests.js
@@ -116,7 +116,8 @@ exports.defineAutoTests = function () {
             itShouldMatch('https://www.apache.org/', ['*://www.apache.org/*']);
             itShouldMatch('ftp://www.apache.org/', ['*://www.apache.org/*']);
             itShouldMatch('file://www.apache.org/', ['*://www.apache.org/*']);
-            itShouldMatch('content://www.apache.org/', ['*://www.apache.org/*']);
+            if (cordova.platformId == 'android')
+                itShouldMatch('content://www.apache.org/', ['*://www.apache.org/*']);
             itShouldMatch('foo://www.apache.org/', ['*://www.apache.org/*']);
             itShouldNotMatch('http://www.apache.com/', ['*://www.apache.org/*']);
 
@@ -200,7 +201,8 @@ exports.defineAutoTests = function () {
             itShouldReject('http://www.apache.org:pass@evil.com/');
             itShouldReject('http://www.apache.org.evil.com/');
             itShouldAccept('file:///foo');
-            itShouldReject('content:///foo');
+            if (cordova.platformId == 'android')
+                itShouldAccept('content:///foo');
         });
     });
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org