diff options
| author | Stephen Blott | 2016-10-17 08:02:20 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-10-17 08:15:06 +0100 | 
| commit | bc2f5e0f52179e915ed7a439fc6bfa03525156ee (patch) | |
| tree | c01fdf33e456f0d5171c530c4da4754db8876a74 /tests/unit_tests/commands_test.coffee | |
| parent | f01c01383d5826a028d4c5c2c43d7b5f18f2fef2 (diff) | |
| download | vimium-bc2f5e0f52179e915ed7a439fc6bfa03525156ee.tar.bz2 | |
Better line parsing.
1. Explicitly remove comments.
2. A trailing backslash means the current line continues on the next line.
E.g.
    a \
      b \
      c
is a single line `a b c`.
This helps alleviate the fact that configuration lines can be very long,
whereas the *Custom key mappings* input is quite narrow.
TODO: We should use the same line parser in the custom-search-engines
input.
Diffstat (limited to 'tests/unit_tests/commands_test.coffee')
| -rw-r--r-- | tests/unit_tests/commands_test.coffee | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee index 2c2e9542..12f4496a 100644 --- a/tests/unit_tests/commands_test.coffee +++ b/tests/unit_tests/commands_test.coffee @@ -1,5 +1,6 @@  require "./test_helper.js"  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" | 
