Mercurial > vim
comparison src/testdir/test_hardcopy.vim @ 12692:03a6aeea2096 v8.0.1224
patch 8.0.1224: still interference between test functions
commit https://github.com/vim/vim/commit/cf1ba35fc2ebd41b9a7738bbd1f026f5311560aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Oct 27 00:55:04 2017 +0200
patch 8.0.1224: still interference between test functions
Problem: Still interference between test functions.
Solution: Clear autocommands. Wipe all buffers. Fix tests that depend on a
specific start context.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 27 Oct 2017 01:00:05 +0200 |
parents | 9ca1c9997863 |
children | 873542706b0b |
comparison
equal
deleted
inserted
replaced
12691:ec5a749db3fa | 12692:03a6aeea2096 |
---|---|
48 | 48 |
49 " Test that :hardcopy produces a non-empty file. | 49 " Test that :hardcopy produces a non-empty file. |
50 " We don't check much of the contents. | 50 " We don't check much of the contents. |
51 func Test_with_syntax() | 51 func Test_with_syntax() |
52 if has('postscript') | 52 if has('postscript') |
53 edit test_hardcopy.vim | |
53 set printoptions=syntax:y | 54 set printoptions=syntax:y |
54 syn on | 55 syn on |
55 hardcopy > Xhardcopy | 56 hardcopy > Xhardcopy |
56 let lines = readfile('Xhardcopy') | 57 let lines = readfile('Xhardcopy') |
57 call assert_true(len(lines) > 20) | 58 call assert_true(len(lines) > 20) |