diff options
| author | Stephen Blott | 2014-10-27 11:42:03 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-10-27 11:42:03 +0000 |
| commit | 7765ff4f60a001238a734588786d7ea33edc2e3e (patch) | |
| tree | 2fb0697ed0f3af714f06d0cf5631931d7e20c058 | |
| parent | 54b597bb1562f9d1c1aa13141cf2d1c33ce66b63 (diff) | |
| download | vimium-7765ff4f60a001238a734588786d7ea33edc2e3e.tar.bz2 | |
Fix tests for favicons.
| -rw-r--r-- | background_scripts/completion.coffee | 2 | ||||
| -rw-r--r-- | tests/unit_tests/completion_test.coffee | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index b52d9eb8..23696185 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -43,8 +43,6 @@ class Suggestion """ # Use neat trick to snatch a domain (http://stackoverflow.com/a/8498668). - # TODO(smblott) Is this really faster than using parseUri? That's probably what's happening behind the - # scenes anyway. getUrlRoot: (url) -> a = document.createElement 'a' a.href = url diff --git a/tests/unit_tests/completion_test.coffee b/tests/unit_tests/completion_test.coffee index 02a741d5..811436a9 100644 --- a/tests/unit_tests/completion_test.coffee +++ b/tests/unit_tests/completion_test.coffee @@ -3,6 +3,8 @@ extend(global, require "../../lib/utils.js") extend(global, require "../../background_scripts/completion.js") global.chrome = {} +global.document = + createElement: -> {} context "bookmark completer", setup -> |
