diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-11-22 10:13:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 10:13:10 +0100 |
commit | 2e722da44d3807698374043ecdd9952bd0772a40 (patch) | |
tree | f37567ea2fe07b6e640386bec469bf8e5d9166d1 /test | |
parent | 8c6b0a5f21d5f0cf3781ef2b6fdbb306d5604a02 (diff) | |
parent | 0b38fe4dbb77c15ae6f5779174855acab25fc86c (diff) | |
download | rneovim-2e722da44d3807698374043ecdd9952bd0772a40.tar.gz rneovim-2e722da44d3807698374043ecdd9952bd0772a40.tar.bz2 rneovim-2e722da44d3807698374043ecdd9952bd0772a40.zip |
Merge pull request #25826 from bfredl/art_deco
refactor(decorations): break up Decoration struct into smaller pieces
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 1 | ||||
-rw-r--r-- | test/functional/ui/bufhl_spec.lua | 3 | ||||
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 6e00be611d..2115c7c244 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -1579,6 +1579,7 @@ describe('API/extmarks', function() eq({0, 0, { ns_id = 1, cursorline_hl_group = "Statement", + priority = 4096, right_gravity = true, } }, get_extmark_by_id(ns, marks[3], { details = true })) end) diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua index 5263fb4c24..81e514c9aa 100644 --- a/test/functional/ui/bufhl_spec.lua +++ b/test/functional/ui/bufhl_spec.lua @@ -762,8 +762,6 @@ describe('Buffer highlighting', function() local s1 = {{'Köttbullar', 'Comment'}, {'Kräuterbutter'}} local s2 = {{'こんにちは', 'Comment'}} - -- TODO: only a virtual text from the same ns currently overrides - -- an existing virtual text. We might add a prioritation system. set_virtual_text(id1, 0, s1, {}) eq({{1, 0, 0, { ns_id = 1, @@ -775,7 +773,6 @@ describe('Buffer highlighting', function() virt_text_hide = false, }}}, get_extmarks(id1, {0,0}, {0, -1}, {details=true})) - -- TODO: is this really valid? shouldn't the max be line_count()-1? local lastline = line_count() set_virtual_text(id1, line_count(), s2, {}) eq({{3, lastline, 0, { diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index b3b3128fdd..59a41a6de6 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -663,7 +663,7 @@ describe('decorations providers', function() ]]) end) - it('does not allow removing extmarks during on_line callbacks', function() + it('does allow removing extmarks during on_line callbacks', function() exec_lua([[ eok = true ]]) @@ -676,7 +676,7 @@ describe('decorations providers', function() end ]]) exec_lua([[ - assert(eok == false) + assert(eok == true) ]]) end) |