Mercurial > vim
comparison src/testdir/test_normal.vim @ 13270:f3fb8dae30f1 v8.0.1509
patch 8.0.1509: test for failing drag-n-drop command no longer fails
commit https://github.com/vim/vim/commit/294959528e02403cd7ef6541208835f0c621c63b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 12 22:49:00 2018 +0100
patch 8.0.1509: test for failing drag-n-drop command no longer fails
Problem: Test for failing drag-n-drop command no longer fails.
Solution: Check for the "dnd" feature.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 12 Feb 2018 23:00:06 +0100 |
parents | 50e1077e0c3d |
children | abaebba89fd4 |
comparison
equal
deleted
inserted
replaced
13269:fa5f734af7ce | 13270:f3fb8dae30f1 |
---|---|
2174 " clean up | 2174 " clean up |
2175 bw! | 2175 bw! |
2176 endfunc | 2176 endfunc |
2177 | 2177 |
2178 func! Test_normal45_drop() | 2178 func! Test_normal45_drop() |
2179 " basic test for :drop command | 2179 if !has('dnd') |
2180 return | |
2181 endif | |
2182 | |
2183 " basic test for drag-n-drop | |
2180 " unfortunately, without a gui, we can't really test much here, | 2184 " unfortunately, without a gui, we can't really test much here, |
2181 " so simply test that ~p fails (which uses the drop register) | 2185 " so simply test that ~p fails (which uses the drop register) |
2182 new | 2186 new |
2183 call assert_fails(':norm! "~p', 'E353') | 2187 call assert_fails(':norm! "~p', 'E353') |
2184 call assert_equal([], getreg('~', 1, 1)) | 2188 call assert_equal([], getreg('~', 1, 1)) |