aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_undo.vim
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-08-10 08:31:50 +0800
committerckelsel <ckelsel@hotmail.com>2017-08-10 08:31:50 +0800
commit9a5d309b5743d70832b4daedcea934af5e6cc127 (patch)
treeb35a1bec0e65da69b183bb074f2dab9354c18534 /src/nvim/testdir/test_undo.vim
parent8b4dc955b7384180c1ae0eab6050bbf4e17c7673 (diff)
parent085102fadf1c1371e863c0e9af8240038ce641e2 (diff)
downloadrneovim-9a5d309b5743d70832b4daedcea934af5e6cc127.tar.gz
rneovim-9a5d309b5743d70832b4daedcea934af5e6cc127.tar.bz2
rneovim-9a5d309b5743d70832b4daedcea934af5e6cc127.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/testdir/test_undo.vim')
-rw-r--r--src/nvim/testdir/test_undo.vim28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim
index 9ff73fd870..171618f6f7 100644
--- a/src/nvim/testdir/test_undo.vim
+++ b/src/nvim/testdir/test_undo.vim
@@ -237,3 +237,31 @@ func Test_insert_expr()
close!
endfunc
+
+func Test_undofile_earlier()
+ throw 'skipped: Nvim does not support test_settime()'
+
+ let t0 = localtime() - 43200
+ call test_settime(t0)
+ new Xfile
+ call feedkeys("ione\<Esc>", 'xt')
+ set ul=100
+ call test_settime(t0 + 1)
+ call feedkeys("otwo\<Esc>", 'xt')
+ set ul=100
+ call test_settime(t0 + 2)
+ call feedkeys("othree\<Esc>", 'xt')
+ set ul=100
+ w
+ wundo Xundofile
+ bwipe!
+ " restore normal timestamps.
+ call test_settime(0)
+ new Xfile
+ rundo Xundofile
+ earlier 1d
+ call assert_equal('', getline(1))
+ bwipe!
+ call delete('Xfile')
+ call delete('Xundofile')
+endfunc