aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Blott2016-03-16 15:02:25 +0000
committerStephen Blott2016-03-17 11:17:03 +0000
commitd6f8e7301ed43a64df77e9bfa0ef9dd7a263faeb (patch)
treeb7eca3d237549205db25864ab187a270d4421f7b /tests
parente19ff7a58ec97de3524a6eb32d5f6e0f57696354 (diff)
downloadvimium-d6f8e7301ed43a64df77e9bfa0ef9dd7a263faeb.tar.bz2
Simplify domReady handling.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/exclusion_test.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/exclusion_test.coffee b/tests/unit_tests/exclusion_test.coffee
index e6a47779..33b04777 100644
--- a/tests/unit_tests/exclusion_test.coffee
+++ b/tests/unit_tests/exclusion_test.coffee
@@ -19,7 +19,8 @@ extend(global, require "../../background_scripts/exclusions.js")
extend(global, require "../../background_scripts/commands.js")
extend(global, require "../../background_scripts/main.js")
-isEnabledForUrl = (request) -> Frames.isEnabledForUrl {request, tabId: 0}
+isEnabledForUrl = (request) ->
+ Frames.isEnabledForUrl {request, tabId: 0, port: postMessage: (id) -> id}
# These tests cover only the most basic aspects of excluded URLs and passKeys.
#