diff options
| author | Stephen Blott | 2015-03-29 10:44:57 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-03-29 10:44:57 +0100 | 
| commit | bfa8eb3ee2985064895e3bb7b92f135399c403af (patch) | |
| tree | 9e45f646c7f5c5eaafad6a0f495eff35cc92a574 /tests | |
| parent | 43c59c238bb1b141c9664e7902a275814cc46258 (diff) | |
| download | vimium-bfa8eb3ee2985064895e3bb7b92f135399c403af.tar.bz2 | |
Move the search-engine logic out of settings.coffee.
This logic should never have been in settings.coffee.  This moves it to completion.coffee, where it belongs.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit_tests/completion_test.coffee | 2 | ||||
| -rw-r--r-- | tests/unit_tests/settings_test.coffee | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/tests/unit_tests/completion_test.coffee b/tests/unit_tests/completion_test.coffee index b7b73cc2..685758c5 100644 --- a/tests/unit_tests/completion_test.coffee +++ b/tests/unit_tests/completion_test.coffee @@ -238,7 +238,7 @@ context "search engines",      @completer = new SearchEngineCompleter()      # note, I couldn't just call @completer.refresh() here as I couldn't set root.Settings without errors      # workaround is below, would be good for someone that understands the testing system better than me to improve -    @completer.searchEngines = Settings.getSearchEngines() +    @completer.searchEngines = SearchEngineCompleter.getSearchEngines()    should "return search engine suggestion without description", ->      results = filterCompleter(@completer, ["foo", "hello"]) diff --git a/tests/unit_tests/settings_test.coffee b/tests/unit_tests/settings_test.coffee index afe862a4..346c98da 100644 --- a/tests/unit_tests/settings_test.coffee +++ b/tests/unit_tests/settings_test.coffee @@ -73,7 +73,7 @@ context "settings",    should "set search engines, retrieve them correctly and check that they have been parsed correctly", ->      searchEngines = "foo: bar?q=%s\n# comment\nbaz: qux?q=%s baz description"      Settings.set 'searchEngines', searchEngines -    result = Settings.getSearchEngines() +    result = SearchEngineCompleter.getSearchEngines()      assert.equal Object.keys(result).length, 2      assert.equal "bar?q=%s", result["foo"].url      assert.isFalse result["foo"].description | 
