aboutsummaryrefslogtreecommitdiffstats
path: root/tests/completion_test.coffee
diff options
context:
space:
mode:
authorPhil Crosby2012-06-04 22:03:10 -0700
committerPhil Crosby2012-06-10 01:41:45 -0700
commite66314769137ced25b65a248643a22af32ef1e95 (patch)
tree80f28197b937552ff23651aecde01665ff975319 /tests/completion_test.coffee
parent7be56a178d69abcc0d27c7d28d832128596a0f88 (diff)
downloadvimium-e66314769137ced25b65a248643a22af32ef1e95.tar.bz2
Monitor newly visited pages and update the list of domains for completions.
Diffstat (limited to 'tests/completion_test.coffee')
-rw-r--r--tests/completion_test.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/completion_test.coffee b/tests/completion_test.coffee
index edb1b59f..531d06b1 100644
--- a/tests/completion_test.coffee
+++ b/tests/completion_test.coffee
@@ -50,6 +50,7 @@ context "domain completer",
@history2 = { title: "history2", url: "http://history2.com", lastVisitTime: hours(1) }
stub(HistoryCache, "use", (onComplete) => onComplete([@history1, @history2]))
+ global.chrome.history = { onVisited: { addListener: -> } }
stub(Date, "now", returns(hours(24)))
@completer = new DomainCompleter()