aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Blott2017-05-01 07:01:18 +0100
committerGitHub2017-05-01 07:01:18 +0100
commit8a74fd31f3086538cfad50df30e0e2c87cd0a6cc (patch)
tree53cbbfa95ca8acf69f6c5c80737ec4803b76d659 /tests
parentc3b16da8391f4c37c79611f79f0ecadaa7b3b300 (diff)
parent9a1b56a899575d71e07eb3466e5fbf16d5a18571 (diff)
downloadvimium-8a74fd31f3086538cfad50df30e0e2c87cd0a6cc.tar.bz2
Merge pull request #2500 from mrmr1993/ff-fix-exclusions
FF - Fix "Save Changes" from the exclusions popup
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/exclusion_test.coffee5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit_tests/exclusion_test.coffee b/tests/unit_tests/exclusion_test.coffee
index f53d23f6..06e0a51f 100644
--- a/tests/unit_tests/exclusion_test.coffee
+++ b/tests/unit_tests/exclusion_test.coffee
@@ -29,7 +29,7 @@ isEnabledForUrl = (request) ->
context "Excluded URLs and pass keys",
setup ->
- Exclusions.postUpdateHook(
+ Settings.set "exclusionRules",
[
{ pattern: "http*://mail.google.com/*", passKeys: "" }
{ pattern: "http*://www.facebook.com/*", passKeys: "abab" }
@@ -39,7 +39,8 @@ context "Excluded URLs and pass keys",
{ pattern: "http*://www.example.com/*", passKeys: "a bb c bba a" }
{ pattern: "http*://www.duplicate.com/*", passKeys: "ace" }
{ pattern: "http*://www.duplicate.com/*", passKeys: "bdf" }
- ])
+ ]
+ Exclusions.postUpdateHook()
should "be disabled for excluded sites", ->
rule = isEnabledForUrl({ url: 'http://mail.google.com/calendar/page' })