aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-03-26 14:19:47 +0100
committerJustin M. Keyes <justinkz@gmail.com>2025-03-26 14:49:23 +0100
commit2e68e9c051dcf1a896b19535513f3fd97e68b415 (patch)
treeac3a413b3e8319dbb6aba62a9a8b634463cda9d5
parent0926098e9db51699c73a0451a9ab5824a8bd59dd (diff)
downloadrneovim-2e68e9c051dcf1a896b19535513f3fd97e68b415.tar.gz
rneovim-2e68e9c051dcf1a896b19535513f3fd97e68b415.tar.bz2
rneovim-2e68e9c051dcf1a896b19535513f3fd97e68b415.zip
fix: temporarily disable 0.12 deprecation tests
Re-enable these after release.
-rw-r--r--test/functional/lua/diagnostic_spec.lua2
-rw-r--r--test/functional/treesitter/query_spec.lua5
2 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/lua/diagnostic_spec.lua b/test/functional/lua/diagnostic_spec.lua
index e9636742d7..0b77291379 100644
--- a/test/functional/lua/diagnostic_spec.lua
+++ b/test/functional/lua/diagnostic_spec.lua
@@ -2667,7 +2667,7 @@ describe('vim.diagnostic', 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
- 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 DiagnosticSignWarn text= texthl= linehl=WarningMsg numhl=WarningMsg')
diff --git a/test/functional/treesitter/query_spec.lua b/test/functional/treesitter/query_spec.lua
index b9bf5bb6e8..d3c4864346 100644
--- a/test/functional/treesitter/query_spec.lua
+++ b/test/functional/treesitter/query_spec.lua
@@ -8,7 +8,6 @@ local insert = n.insert
local exec_lua = n.exec_lua
local pcall_err = t.pcall_err
local api = n.api
-local fn = n.fn
local function get_query_result(query_text)
local cquery = vim.treesitter.query.parse('c', query_text)
@@ -550,7 +549,7 @@ void ui_refresh(void)
end)
-- 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)
end
@@ -683,7 +682,7 @@ void ui_refresh(void)
it('supports the old broken version of iter_matches #24738', function()
-- 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)
local res = exec_lua(function()