Mercurial > vim
view src/testdir/test_erasebackword.vim @ 14756:a179e5cfcab7 v8.1.0390
patch 8.1.0390: scrollbars are not tested
commit https://github.com/vim/vim/commit/ab18673731522c18696b9b132d3841646904e1bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 14 21:27:06 2018 +0200
patch 8.1.0390: scrollbars are not tested
Problem: Scrollbars are not tested.
Solution: Add test_scrollbar() and a test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 14 Sep 2018 21:30:05 +0200 |
parents | 90aaa974594e |
children | 2dcaa860e3fc |
line wrap: on
line source
func Test_erasebackword() if !has('multi_byte') return endif set encoding=utf-8 enew exe "normal o wwwこんにちわ世界ワールドvim \<C-W>" call assert_equal(' wwwこんにちわ世界ワールド', getline('.')) exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>" call assert_equal(' wwwこんにちわ世界', getline('.')) exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>" call assert_equal(' wwwこんにちわ', getline('.')) exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>" call assert_equal(' www', getline('.')) exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>" call assert_equal(' ', getline('.')) exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>\<C-W>" call assert_equal('', getline('.')) enew! set encoding& endfunc