cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject spec commit: Fixed a failing whitelist test.
Date Wed, 17 Sep 2014 18:51:25 GMT
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 <max.woghiren@gmail.com>
Authored: Wed Sep 17 14:50:33 2014 -0400
Committer: Max Woghiren <max.woghiren@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*']);
 


Mime
View raw message