From 7765ff4f60a001238a734588786d7ea33edc2e3e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 27 Oct 2014 11:42:03 +0000 Subject: Fix tests for favicons. --- background_scripts/completion.coffee | 2 -- 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 -> -- cgit v1.2.3