Skip to content

Commit

Permalink
Updates for colorscheme of neovim v0.10
Browse files Browse the repository at this point in the history
This updates most test fixtures to the new colorscheme of neovim
v0.10.0.  This breaks the tests for neovim 0.9.x.
  • Loading branch information
lucc committed May 18, 2024
1 parent 9e557e5 commit f620b16
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/conceal.tex.ansi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ß should be ß
ß should be ß
2 changes: 1 addition & 1 deletion test/fixtures/conceal.tex.cole0.ansi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
\ss should be ß
\ss should be ß
2 changes: 1 addition & 1 deletion test/fixtures/conceal.tex.red
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[0;95m\ss[0;91m should be ß[0;91m
[0m\ss[0;91m should be ß[0;91m
14 changes: 7 additions & 7 deletions test/fixtures/diff-modeline.ansi
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
diff --git a/nvimpager b/nvimpager
index d7d4e2f..99fb715 100755
--- a/nvimpager
+++ b/nvimpager
@@ -104,4 +104,4 @@ then
diff --git a/nvimpager b/nvimpager
index d7d4e2f..99fb715 100755
--- a/nvimpager
+++ b/nvimpager
@@ -104,4 +104,4 @@ then
 default_args+=(--headless)
fi
nvim "${default_args[@]}" "${files[@]}" "$@" </dev/tty
-# no modeline
+# vim: filetype=anythingbutdiff foobar=error
-# no modeline
+# vim: filetype=anythingbutdiff foobar=error
12 changes: 6 additions & 6 deletions test/fixtures/diff.ansi
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff --git a/test/nvimpager_spec.lua b/test/nvimpager_spec.lua
index 68e2097..4593495 100644
--- a/test/nvimpager_spec.lua
+++ b/test/nvimpager_spec.lua
@@ -405,3 +405,17 @@ describe("lua functions", function()
diff --git a/test/nvimpager_spec.lua b/test/nvimpager_spec.lua
index 68e2097..4593495 100644
--- a/test/nvimpager_spec.lua
+++ b/test/nvimpager_spec.lua
@@ -405,3 +405,17 @@ describe("lua functions", function()
 end)
end)
end)
+
+
+describe("parent detection", function()
+ it("handles git", function()
+ local output = run("test/fixtures/bin/git ./nvimpager -c test/fixtures/diff")
Expand Down
20 changes: 10 additions & 10 deletions test/fixtures/git-log.ansi
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
commit 3d032f9e546fc8a1e987bbbef54e8dab1ceaf4bd
Author: Lucas Hoffmann <lucc@posteo.de>
Date: Mon Aug 20 23:37:04 2018 +0200
commit 3d032f9e546fc8a1e987bbbef54e8dab1ceaf4bd
Author: Lucas Hoffmann <lucc@posteo.de>
Date: Mon Aug 20 23:37:04 2018 +0200

 This is based on the log entry of 3d032f9e546fc8a1e987bbbef54e8dab1ceaf4bd
but was modiefied for the tests.

The last line is turned into a valid modeline even with the diff prefix.
If it is interpreted it should result in an error message.

diff --git a/test/fixtures/help.txt b/test/fixtures/help.txt
index ad4baf6..ab64439 100644
--- a/test/fixtures/help.txt
+++ b/test/fixtures/help.txt
@@ -1,3 +1,3 @@
-vim: filetype=help
diff --git a/test/fixtures/help.txt b/test/fixtures/help.txt
index ad4baf6..ab64439 100644
--- a/test/fixtures/help.txt
+++ b/test/fixtures/help.txt
@@ -1,3 +1,3 @@
-vim: filetype=help
 *conceal-test* normal
conceal-test
+ vim: foobar=error
+ vim: foobar=error
2 changes: 1 addition & 1 deletion test/fixtures/help.txt.ansi
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
conceal-test normal
*conceal-test* normal
conceal-test
vim: filetype=help
2 changes: 1 addition & 1 deletion test/fixtures/help.txt.cole0.ansi
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*conceal-test* normal
*conceal-test* normal
conceal-test
vim: filetype=help
2 changes: 1 addition & 1 deletion test/fixtures/help.txt.cole1.ansi
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
 conceal-test  normal
*conceal-test* normal
conceal-test
vim: filetype=help
4 changes: 2 additions & 2 deletions test/fixtures/listchars1.txt.24bit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Here_are_spaces.$
And_two_trailing_space:--$
Here_are_spaces.$
And_two_trailing_space:--$
4 changes: 2 additions & 2 deletions test/fixtures/listchars1.txt.8bit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[0mHere[0;94m_[0mare[0;94m_[0mspaces.[0;94m$
[0mAnd[0;94m_[0mtwo[0;94m_[0mtrailing[0;94m_[0mspace:[0;94m--[0;94m$[0m
[0mHere[0m_[0mare[0m_[0mspaces.[0m$
[0mAnd[0m_[0mtwo[0m_[0mtrailing[0m_[0mspace:[0m--[0m$[0m
6 changes: 3 additions & 3 deletions test/fixtures/man.ansi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
TEST(0) TEST(0)
TEST(0) TEST(0)

SYNOPSIS
SYNOPSIS
 exit

AUTHORS
AUTHORS
 Author.

 date TEST(0)
2 changes: 1 addition & 1 deletion test/fixtures/nbsp.ansi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nbsp+nbsp
nbsp+nbsp
2 changes: 1 addition & 1 deletion test/fixtures/plain.red24
Original file line number Diff line number Diff line change
@@ -1 +1 @@
some text
some text

0 comments on commit f620b16

Please sign in to comment.