diff options
| author | Stephen Blott | 2016-02-09 15:28:50 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-02-09 15:31:09 +0000 | 
| commit | 4ada22e85dcd061fa806a5fe72a9dc3f1cfe0442 (patch) | |
| tree | 3147bb1ffd7d6b46d94141d8d6e51b2a88fe3efe /tests | |
| parent | b6a0cc82d138dd67a77d8e3298c6f56362e729be (diff) | |
| download | vimium-4ada22e85dcd061fa806a5fe72a9dc3f1cfe0442.tar.bz2 | |
BgUtils; move tabRecency to bg_tiles.coffee.
Certain background-page utilities are actually shared, and are therefore
best placed in place that reflects that.
Here, tabRecency is moved to the new gb_utils.coffee in preparation for
implementing a go-to-previous-tab command.  In particular, it is no
longer appropriate that tabRecency be embedded within the completion
code.
logMessage() from main.coffee is also a candidate for moving to
bg_utils.coffee.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit_tests/completion_test.coffee | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/tests/unit_tests/completion_test.coffee b/tests/unit_tests/completion_test.coffee index 9ce0a466..3bb187fd 100644 --- a/tests/unit_tests/completion_test.coffee +++ b/tests/unit_tests/completion_test.coffee @@ -1,5 +1,6 @@  require "./test_helper.js"  extend(global, require "../../lib/utils.js") +extend(global, require "../../background_scripts/bg_utils.js")  extend(global, require "../../background_scripts/completion_engines.js")  extend(global, require "../../background_scripts/completion.js")  extend global, require "./test_chrome_stubs.js" @@ -411,7 +412,7 @@ fakeTimeDeltaElapsing = ->  context "TabRecency",    setup -> -    @tabRecency = new TabRecency() +    @tabRecency = BgUtils.tabRecency      fakeTimeDeltaElapsing = =>        if @tabRecency.lastVisitedTime? | 
