Skip to content
Permalink
Browse files
Fix whitelist tests for non-android platforms
  • Loading branch information
clelland committed Mar 26, 2015
1 parent 126c0c4 commit b8401eb3c99573de6e6ae6af952f32d19bd2cd28
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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');
Copy link
@alsorokin

alsorokin May 19, 2015

Contributor

@clelland did you change itShouldReject to itShouldAccept intentionally?

});
});
}

0 comments on commit b8401eb

Please sign in to comment.