We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4f8257 commit af9cbc2Copy full SHA for af9cbc2
https-everywhere-tests/test/test-httpse-installed.js
@@ -20,4 +20,16 @@ exports["test httpse potentiallyApplicableRulesets"] = function(assert) {
20
"Test that HTTPSE finds one applicable rule for www.eff.org");
21
}
22
23
+exports["test sample ruleset"] = function(assert, done) {
24
+ var tabs = require("sdk/tabs");
25
+
26
+ tabs.on('ready', function(tab) {
27
+ assert.equal(tab.url, "https://www.reddit.com/robots.txt",
28
+ "Test that Reddit URLs are rewritten to HTTPS.");
29
+ done();
30
+ });
31
32
+ tabs.open("http://www.reddit.com/robots.txt");
33
+}
34
35
require("sdk/test").run(exports);
0 commit comments