[Pkg-mozext-commits] [requestpolicy] 200/257: [tst][imp] old rules: test importing IP address rules
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 6bc15de4d46c5b79985c4527203e676d12e76985
Author: Martin Kimmerle <dev at 256k.de>
Date: Sun Dec 6 12:39:36 2015 +0100
[tst][imp] old rules: test importing IP address rules
---
tests/xpcshell/test_oldrules.js | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/tests/xpcshell/test_oldrules.js b/tests/xpcshell/test_oldrules.js
index af57c7e..05829f8 100644
--- a/tests/xpcshell/test_oldrules.js
+++ b/tests/xpcshell/test_oldrules.js
@@ -69,6 +69,25 @@ function test_0() {
}
]);
+ // localhost IP address
+ testGetOldRulesAsNewRules(
+ [
+ // IPv4
+ "127.0.0.1 " +
+ "http://127.0.0.1:8080 " +
+ // IPv6
+ "::1 " +
+ "http://[::1]:8080",
+ "",
+ ""
+ ],
+ [
+ {o: {h: "127.0.0.1"}},
+ {o: {s: "http", h: "127.0.0.1", port: 8080}},
+ {o: {h: "::1"}},
+ {o: {s: "http", h: "::1", port: 8080}}
+ ]);
+
// Get the old rules from the prefs.
// The prefs don't exist.
testGetOldRulesAsNewRules([undefined, undefined, undefined], []);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list