Fix whitelist tests for non-android platforms
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 @@
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 @@
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');
});
});
}