diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-09 03:07:02 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-09 03:24:26 +0300 |
commit | ddaa41dee4077247b7742df5762413ef8e3dc7f8 (patch) | |
tree | af7d53c6df490846492bdad1fcacaa64f92d0e32 | |
parent | 88ea362c7094cf236a3fd05c5df3231360a5b2b4 (diff) | |
download | rneovim-ddaa41dee4077247b7742df5762413ef8e3dc7f8.tar.gz rneovim-ddaa41dee4077247b7742df5762413ef8e3dc7f8.tar.bz2 rneovim-ddaa41dee4077247b7742df5762413ef8e3dc7f8.zip |
functests: Fix ui/bufhl_spec
-rw-r--r-- | test/functional/ui/bufhl_spec.lua | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua index b0be91c4e9..536a5c43ee 100644 --- a/test/functional/ui/bufhl_spec.lua +++ b/test/functional/ui/bufhl_spec.lua @@ -1,7 +1,10 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') +local Paths = require('test.config.paths') + local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert local command, request, neq = helpers.command, helpers.request, helpers.neq +local meths = helpers.meths if helpers.pending_win32(pending) then return end @@ -11,6 +14,9 @@ describe('Buffer highlighting', function() before_each(function() clear() + meths.set_var('source_path', Paths.test_source_path) + command('let $VIMRUNTIME=source_path . "/runtime"') + command('set runtimepath=$VIMRUNTIME') command("syntax on") screen = Screen.new(40, 8) screen:attach() @@ -131,7 +137,7 @@ describe('Buffer highlighting', function() {1:~ }| {1:~ }| {1:~ }| - :hi ImportantWord gui=bold cterm=bold | + | ]]) end) @@ -145,7 +151,7 @@ describe('Buffer highlighting', function() {1:~ }| {1:~ }| {1:~ }| - :hi ImportantWord gui=bold cterm=bold | + | ]]) end) @@ -159,7 +165,7 @@ describe('Buffer highlighting', function() {1:~ }| {1:~ }| {1:~ }| - :hi ImportantWord gui=bold cterm=bold | + | ]]) end) @@ -175,7 +181,7 @@ describe('Buffer highlighting', function() {1:~ }| {1:~ }| {1:~ }| - :hi ImportantWord gui=bold cterm=bold | + | ]]) end) @@ -201,7 +207,7 @@ describe('Buffer highlighting', function() {1:~ }| {1:~ }| {1:~ }| - ::3move 4 | + | ]]) end) end) |