aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Blott2012-11-11 14:10:58 +0000
committerStephen Blott2012-11-11 14:10:58 +0000
commit03823f97a526ed5e5104b724d4f2a0b582505a6c (patch)
tree2f6d46b579a10dc7e3e25edaa11e09417d018348 /tests
parent3dc8a03d7271c659139c157bb658795dd21298f9 (diff)
downloadvimium-03823f97a526ed5e5104b724d4f2a0b582505a6c.tar.bz2
Extend removing entries to the domain completer.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/completion_test.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/completion_test.coffee b/tests/unit_tests/completion_test.coffee
index 77464b96..5d7be78b 100644
--- a/tests/unit_tests/completion_test.coffee
+++ b/tests/unit_tests/completion_test.coffee
@@ -137,7 +137,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: -> }, onVisitRemoved: -> }
+ global.chrome.history = { onVisited: { addListener: -> }, onVisitRemoved: { addListener: -> } }
stub(Date, "now", returns(hours(24)))
@completer = new DomainCompleter()
@@ -147,7 +147,7 @@ context "domain completer",
assert.arrayEqual ["history1.com"], results.map (result) -> result.url
should "pick domains which are more recent", ->
- # This domains are the same except for their last visited time.
+ # These domains are the same except for their last visited time.
assert.equal "history1.com", filterCompleter(@completer, ["story"])[0].url
@history2.lastVisitTime = hours(3)
assert.equal "history2.com", filterCompleter(@completer, ["story"])[0].url