fix: temporarily disable 0.12 deprecation tests

Re-enable these after release.
This commit is contained in:
Justin M. Keyes
2025-03-26 14:19:47 +01:00
parent 0926098e9d
commit 2e68e9c051
2 changed files with 3 additions and 4 deletions

View File

@@ -2667,7 +2667,7 @@ describe('vim.diagnostic', function()
it('respects legacy signs placed with :sign define or sign_define #26618', function() it('respects legacy signs placed with :sign define or sign_define #26618', function()
-- Legacy signs for diagnostics were deprecated in 0.10 and will be removed in 0.12 -- Legacy signs for diagnostics were deprecated in 0.10 and will be removed in 0.12
eq(0, n.fn.has('nvim-0.12')) -- eq(0, n.fn.has('nvim-0.12'))
n.command('sign define DiagnosticSignError text= texthl= linehl=ErrorMsg numhl=ErrorMsg') n.command('sign define DiagnosticSignError text= texthl= linehl=ErrorMsg numhl=ErrorMsg')
n.command('sign define DiagnosticSignWarn text= texthl= linehl=WarningMsg numhl=WarningMsg') n.command('sign define DiagnosticSignWarn text= texthl= linehl=WarningMsg numhl=WarningMsg')

View File

@@ -8,7 +8,6 @@ local insert = n.insert
local exec_lua = n.exec_lua local exec_lua = n.exec_lua
local pcall_err = t.pcall_err local pcall_err = t.pcall_err
local api = n.api local api = n.api
local fn = n.fn
local function get_query_result(query_text) local function get_query_result(query_text)
local cquery = vim.treesitter.query.parse('c', query_text) local cquery = vim.treesitter.query.parse('c', query_text)
@@ -550,7 +549,7 @@ void ui_refresh(void)
end) end)
-- Remove this 'do' block in 0.12 -- Remove this 'do' block in 0.12
eq(0, fn.has('nvim-0.12')) -- eq(0, n.fn.has('nvim-0.12'))
eq({ { 0, 4, 0, 8 } }, res) eq({ { 0, 4, 0, 8 } }, res)
end end
@@ -683,7 +682,7 @@ void ui_refresh(void)
it('supports the old broken version of iter_matches #24738', function() it('supports the old broken version of iter_matches #24738', function()
-- Delete this test in 0.12 when iter_matches is removed -- Delete this test in 0.12 when iter_matches is removed
eq(0, fn.has('nvim-0.12')) -- eq(0, n.fn.has('nvim-0.12'))
insert(test_text) insert(test_text)
local res = exec_lua(function() local res = exec_lua(function()