mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
test: typing for helpers.meths
This commit is contained in:
@@ -118,7 +118,7 @@ describe('multibyte rendering', function()
|
||||
|
||||
it('works with a lot of unicode (zalgo) text', function()
|
||||
screen:try_resize(65, 10)
|
||||
meths.buf_set_lines(
|
||||
meths.nvim_buf_set_lines(
|
||||
0,
|
||||
0,
|
||||
-1,
|
||||
@@ -156,7 +156,7 @@ describe('multibyte rendering', function()
|
||||
|
||||
-- nvim will reset the zalgo text^W^W glyph cache if it gets too full.
|
||||
-- this should be exceedingly rare, but fake it to make sure it works
|
||||
meths._invalidate_glyph_cache()
|
||||
meths.nvim__invalidate_glyph_cache()
|
||||
screen:expect {
|
||||
grid = [[
|
||||
^L̓̉̑̒̌̚ơ̗̌̒̄̀ŕ̈̈̎̐̕è̇̅̄̄̐m̖̟̟̅̄̚ ̛̓̑̆̇̍i̗̟̞̜̅̐p̗̞̜̉̆̕s̟̜̘̍̑̏ū̟̞̎̃̉ḿ̘̙́́̐ ̖̍̌̇̉̚d̞̄̃̒̉̎ò́̌̌̂̐l̞̀̄̆̌̚ȯ̖̞̋̀̐r̓̇̌̃̃̚ ̗̘̀̏̍́s̜̀̎̎̑̕i̟̗̐̄̄̚t̝̎̆̓̐̒ ̘̇̔̓̊̚ȃ̛̟̗̏̅m̜̟̙̞̈̓é̘̞̟̔̆t̝̂̂̈̑̔,̜̜̖̅̄̍ ̛̗̊̓̆̚c̟̍̆̍̈̔ȯ̖̖̝̑̀n̜̟̎̊̃̚s̟̏̇̎̒̚e̙̐̈̓̌̚c̙̍̈̏̅̕ť̇̄̇̆̓e̛̓̌̈̓̈t̟̍̀̉̆̅u̝̞̎̂̄̚r̘̀̅̈̅̐ ̝̞̓́̇̉ã̏̀̆̅̕d̛̆̐̉̆̋ȉ̞̟̍̃̚p̛̜̊̍̂̓ȋ̏̅̃̋̚ṥ̛̏̃̕č̛̞̝̀̂í̗̘̌́̎n̔̎́̒̂̕ǧ̗̜̋̇̂ ̛̜̔̄̎̃ê̛̔̆̇̕l̘̝̏̐̊̏ĩ̛̍̏̏̄t̟̐́̀̐̎,̙̘̍̆̉̐ ̋̂̏̄̌̅s̙̓̌̈́̇e̛̗̋̒̎̏d̜̗̊̍̊̚ |
|
||||
@@ -227,7 +227,7 @@ describe('multibyte rendering', function()
|
||||
-- If we would increase the schar_t size, say from 32 to 64 bytes, we need to extend the
|
||||
-- test text with even more zalgo energy to still touch this edge case.
|
||||
|
||||
meths.buf_set_lines(0, 0, -1, true, { 'سلام့̀́̂̃̄̅̆̇̈̉̊̋̌' })
|
||||
meths.nvim_buf_set_lines(0, 0, -1, true, { 'سلام့̀́̂̃̄̅̆̇̈̉̊̋̌' })
|
||||
command('set noarabicshape')
|
||||
|
||||
screen:expect {
|
||||
|
||||
Reference in New Issue
Block a user