diff options
author | w0rp <devw0rp@gmail.com> | 2018-06-19 20:53:49 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-06-19 20:53:49 +0100 |
commit | 82ea36576c2221dc20ca98b748d7c83a25f9a4d3 (patch) | |
tree | 8d9ff51912934475f8a0fa84674f2ce90a7bb7b4 /test | |
parent | fd261d7a171686a395b0c31cbc1c97e24cf24290 (diff) | |
download | ale-82ea36576c2221dc20ca98b748d7c83a25f9a4d3.zip |
Move ClockMilliseconds to events, so fewer files are loaded some times
Diffstat (limited to 'test')
-rw-r--r-- | test/test_quitting_variable.vader | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_quitting_variable.vader b/test/test_quitting_variable.vader index bef344a8..38b43bb4 100644 --- a/test/test_quitting_variable.vader +++ b/test/test_quitting_variable.vader @@ -11,12 +11,12 @@ After: unlet! b:time_before Execute(QuitEvent should set b:ale_quitting some time from the clock): - let b:time_before = ale#util#ClockMilliseconds() + let b:time_before = ale#events#ClockMilliseconds() call ale#events#QuitEvent(bufnr('')) Assert b:ale_quitting >= b:time_before - Assert b:ale_quitting <= ale#util#ClockMilliseconds() + Assert b:ale_quitting <= ale#events#ClockMilliseconds() Execute(EnterEvent should set b:ale_quitting to 0): let b:ale_quitting = 1 @@ -29,11 +29,11 @@ Execute(The QuitRecently function should work when the variable isn't set): AssertEqual 0, ale#events#QuitRecently(bufnr('')) Execute(The QuitRecently function should return 1 when ALE quit recently): - let b:ale_quitting = ale#util#ClockMilliseconds() + let b:ale_quitting = ale#events#ClockMilliseconds() AssertEqual 1, ale#events#QuitRecently(bufnr('')) Execute(The QuitRecently function should return 0 when a second has passed): - let b:ale_quitting = ale#util#ClockMilliseconds() - 1001 + let b:ale_quitting = ale#events#ClockMilliseconds() - 1001 AssertEqual 0, ale#events#QuitRecently(bufnr('')) |