You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2014/09/17 20:51:25 UTC

spec commit: Fixed a failing whitelist test.

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 5aa443482 -> a7af0cf91


Fixed a failing whitelist test.

Whitelists, by default, accept *no* domains.


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

Branch: refs/heads/master
Commit: a7af0cf91709082428e5deaf2948b76db7cfb2ac
Parents: 5aa4434
Author: Max Woghiren <ma...@gmail.com>
Authored: Wed Sep 17 14:50:33 2014 -0400
Committer: Max Woghiren <ma...@gmail.com>
Committed: Wed Sep 17 14:50:33 2014 -0400

----------------------------------------------------------------------
 www/autotest/tests/whitelist.tests.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/a7af0cf9/www/autotest/tests/whitelist.tests.js
----------------------------------------------------------------------
diff --git a/www/autotest/tests/whitelist.tests.js b/www/autotest/tests/whitelist.tests.js
index 876d632..c39b86b 100644
--- a/www/autotest/tests/whitelist.tests.js
+++ b/www/autotest/tests/whitelist.tests.js
@@ -87,7 +87,7 @@ describe('Whitelist API (cordova.whitelist)', function () {
 
         itShouldMatch('file:///foo', ['file:///foo*']);
         itShouldMatch('file:///foo/bar.html', ['file:///foo*']);
-        itShouldMatch('file:///foo.html', [ ]);
+        itShouldNotMatch('file:///foo.html', [ ]);
         itShouldNotMatch('http://www.apache.org/etc/foo', ['http://www.apache.org/foo*']);
         itShouldNotMatch('http://www.apache.org/foo', ['file:///foo*']);