From b06ed7bd5cc82ec3307aeee945bcf6bf8f9264ce Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 25 Oct 2017 01:00:18 +0100 Subject: Include LinkHints, Vomnibar and Marks commands in normal mode file --- tests/unit_tests/commands_test.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee index 08bf0a73..fcc7b821 100644 --- a/tests/unit_tests/commands_test.coffee +++ b/tests/unit_tests/commands_test.coffee @@ -3,8 +3,14 @@ extend global, require "./test_chrome_stubs.js" extend global, require "../../background_scripts/bg_utils.js" global.Settings = {postUpdateHooks: {}, get: (-> ""), set: ->} {Commands} = require "../../background_scripts/commands.js" -global.KeyHandlerMode = {} + +# Include mode_normal to check that all commands have been implemented. +global.KeyHandlerMode = global.Mode = {} global.DomUtils = {makeXPath: ->} +global.KeyboardUtils = {platform: ""} +extend global, require "../../content_scripts/link_hints.js" +extend global, require "../../content_scripts/marks.js" +extend global, require "../../content_scripts/vomnibar.js" {NormalModeCommands} = require "../../content_scripts/mode_normal.js" context "Key mappings", -- cgit v1.2.3