diff options
| author | Stephen Blott | 2014-12-29 15:16:46 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-12-29 15:16:46 +0000 |
| commit | ba743054dcd26b225db407db261e480ab485e2d0 (patch) | |
| tree | 60eb4400ee55a42fa9b3fecd60ab0893c62d3b53 /tests/unit_tests | |
| parent | 25473c3dea3d847d36bda9c56a190dd3b0e5a43f (diff) | |
| parent | 5c750bb10104aeef8fff6131e24b2889619c3ab7 (diff) | |
| download | vimium-ba743054dcd26b225db407db261e480ab485e2d0.tar.bz2 | |
Merge pull request #1384 from smblott-github/fix-search-custom-search-engine-support
Uniform treatment of search queries
Diffstat (limited to 'tests/unit_tests')
| -rw-r--r-- | tests/unit_tests/utils_test.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/utils_test.coffee b/tests/unit_tests/utils_test.coffee index 556f5b7a..88e9a15b 100644 --- a/tests/unit_tests/utils_test.coffee +++ b/tests/unit_tests/utils_test.coffee @@ -45,7 +45,8 @@ context "convertToUrl", should "convert non-URL terms into search queries", -> assert.equal "http://www.google.com/search?q=google", Utils.convertToUrl("google") - assert.equal "http://www.google.com/search?q=go%20ogle.com", Utils.convertToUrl("go ogle.com") + assert.equal "http://www.google.com/search?q=go+ogle.com", Utils.convertToUrl("go ogle.com") + assert.equal "http://www.google.com/search?q=%40twitter", Utils.convertToUrl("@twitter") context "hasChromePrefix", should "detect chrome prefixes of URLs", -> |
