aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-16 10:33:57 -0400
committerGitHub <noreply@github.com>2020-10-16 10:33:57 -0400
commit0af18a6a4325d24bf4c386edb81c2f3776dab787 (patch)
treeaa5d79b6b8f28f47a348cde946d72974df21adbe /src/nvim/testdir
parent3566244d0e90d1efcf50d5136ab77d9a19aea9a1 (diff)
parent074745d9242acb6bba7252b13691afbe85439372 (diff)
downloadrneovim-0af18a6a4325d24bf4c386edb81c2f3776dab787.tar.gz
rneovim-0af18a6a4325d24bf4c386edb81c2f3776dab787.tar.bz2
rneovim-0af18a6a4325d24bf4c386edb81c2f3776dab787.zip
Merge pull request #13097 from janlazo/vim-8.2.1850
vim-patch:8.2.1850 scripts/vim-patch.sh: include --shortstat with -m
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_textobjects.vim30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textobjects.vim b/src/nvim/testdir/test_textobjects.vim
index 7863317eb0..f70cc1f70a 100644
--- a/src/nvim/testdir/test_textobjects.vim
+++ b/src/nvim/testdir/test_textobjects.vim
@@ -152,6 +152,36 @@ func Test_string_html_objects()
normal! dit
call assert_equal('-<b></b>', getline('.'))
+ " copy the tag block from leading indentation before the start tag
+ let t = " <b>\ntext\n</b>"
+ $put =t
+ normal! 2kvaty
+ call assert_equal("<b>\ntext\n</b>", @")
+
+ " copy the tag block from the end tag
+ let t = "<title>\nwelcome\n</title>"
+ $put =t
+ normal! $vaty
+ call assert_equal("<title>\nwelcome\n</title>", @")
+
+ " copy the outer tag block from a tag without an end tag
+ let t = "<html>\n<title>welcome\n</html>"
+ $put =t
+ normal! k$vaty
+ call assert_equal("<html>\n<title>welcome\n</html>", @")
+
+ " nested tag that has < in a different line from >
+ let t = "<div><div\n></div></div>"
+ $put =t
+ normal! k0vaty
+ call assert_equal("<div><div\n></div></div>", @")
+
+ " nested tag with attribute that has < in a different line from >
+ let t = "<div><div\nattr=\"attr\"\n></div></div>"
+ $put =t
+ normal! 2k0vaty
+ call assert_equal("<div><div\nattr=\"attr\"\n></div></div>", @")
+
set quoteescape&
enew!
endfunc