Lines Matching refs:file
21 " '.', swap file in the same directory as file
24 " Verify that the swap file doesn't exist in the current directory
30 " './dir', swap file in a directory relative to the file
40 " 'dir', swap file in directory relative to the current dir
71 throw 'Skipped: test file does not have the first group'
76 throw 'Skipped: cannot set second group on test file'
81 " Group of swapfile must now match original file.
99 " This should not give a warning for an existing swap file.
103 " Delete the buffer so that swap file is removed before we try to delete the
122 " host name is truncated to 39 bytes in the swap file
136 call assert_equal('Cannot open file', info.error)
140 call assert_equal('Cannot read file', info.error)
145 call assert_equal('Not a swap file', info.error)
183 " Create a valid swapfile by editing a file.
186 write " file is written, not modified
191 " Close the file and recreate the swap file.
192 " Now editing the file will run into the process still existing
213 " Now set the modified flag, the swap file will not be deleted
240 " Create a valid swapfile by editing a file.
243 write " file is written, not modified
248 " Close the file and recreate the swap file.
251 " Edit the file again. This triggers recovery.
256 call assert_exception('E308:') " Original file may have been changed
258 " The file should be recovered.
280 " Create a valid swapfile by editing a file with a special extension.
283 write " file is written, not modified
289 " Close and delete the file and recreate the swap file.
293 " Edit the file again. This triggers recovery.
298 call assert_exception('E308:') " Original file may have been changed
300 " The file should be recovered.
312 " Test for closing a split window automatically when a swap file is detected
321 " Create a valid swapfile by editing a file with a special extension.
324 write " file is written, not modified
330 " Close and delete the file and recreate the swap file.
334 " Split edit the file again. This should fail to open the window
339 call assert_exception('E308:') " Original file may have been changed
358 preserve " should help to make sure the swap file exists
376 " This caused Vim to crash when typing "q" at the swap file prompt.
402 " Test that swap file uses the name of the file when editing through a
403 " symbolic link (so that editing the file twice is detected)
456 " Create a valid swapfile by editing a file with a special extension.
459 write " file is written, not modified
465 " Forget about the file, recreate the swap file, then edit it again. The
466 " swap file should be automatically deleted.
473 " will end up using the same swap file after deleting the existing one
477 " create the swap file again, but change the host name so that it won't be
490 " will use another same swap file name
502 " Test for renaming a buffer when the swap file is deleted out-of-band
507 call assert_fails('file Xfile3', 'E301:')
578 call assert_equal("\nNo swap file", execute('swapname'))