aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_textobjects.vim
diff options
context:
space:
mode:
Diffstat (limited to 'test/old/testdir/test_textobjects.vim')
-rw-r--r--test/old/testdir/test_textobjects.vim14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/old/testdir/test_textobjects.vim b/test/old/testdir/test_textobjects.vim
index 3b86ae97da..0f41f0a241 100644
--- a/test/old/testdir/test_textobjects.vim
+++ b/test/old/testdir/test_textobjects.vim
@@ -203,6 +203,18 @@ func Test_string_html_objects()
normal! 2k0vaty
call assert_equal("<div><div\nattr=\"attr\"\n></div></div>", @", e)
+ " tag, that includes a > in some attribute
+ let t = "<div attr=\"attr >> foo >> bar \">Hello</div>"
+ $put =t
+ normal! fHyit
+ call assert_equal("Hello", @", e)
+
+ " tag, that includes a > in some attribute
+ let t = "<div attr='attr >> foo >> bar '>Hello 123</div>"
+ $put =t
+ normal! fHyit
+ call assert_equal("Hello 123", @", e)
+
set quoteescape&
" this was going beyond the end of the line
@@ -232,7 +244,7 @@ func Test_empty_html_tag()
normal 0f<vitsaaa
call assert_equal('aaa', getline(1))
- " selecting a tag block in an non-empty blank line should fail
+ " selecting a tag block in a non-empty blank line should fail
call setline(1, ' ')
call assert_beeps('normal $vaty')