summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_buffer.vim
AgeCommit message (Collapse)Author
2024-04-04patch 9.1.0265: console dialog cannot save unnamed buffersv9.1.0265glepnir
Problem: console dialog cannot save unnamed buffers Solution: set bufname before save (glepnir). Define dialog_con_gui to test for GUI+Console dialog support, use it to skip the test when the GUI feature has been defined. Note: The dialog_changed() function will also try to call the browse_save_fname() function, when FEAT_BROWSE is defined (which is only defined in a GUI build of Vim). This will eventually lead to a call of do_browse(), which causes an error message if a GUI is not currently running (see the TODO: in do_browse()) and will then lead to a failure in Test_goto_buf_with_onfirm(). Therefore, we must disable the Test_goto_buf_with_onfirm(), when the dialog_con_gui feature is enabled (which basically means dialog feature for GUI and Console builds, in contrast to the dialog_con and dialog_gui feature). (Previously this wasn't a problem, because the test aborted in the YES case for the :confirm :b XgotoConf case and did therefore not run into the browse function call) closes: #14398 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-28patch 9.1.0220: Few typos in source and test filesv9.1.0220zeertzjq
Problem: Typos in code and tests. Solution: Fix typos (zeertzjq). closes: #14321 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2022-09-19patch 9.0.0506: line number argument for :badd does not workv9.0.0506Bram Moolenaar
Problem: Line number argument for :badd does not work. Solution: Set the last cursor position in the new buffer. (closes #11161)
2022-09-08patch 9.0.0415: on MS-Windows some tests are flakyv9.0.0415K.Takata
Problem: On MS-Windows some tests are flaky. Solution: Add sleeps, disable swapfile, mark test as flaky. (Ken Takata, closes #11082)
2022-09-05patch 9.0.0391: using separate delete() call instead of writefile() 'D' flagv9.0.0391Bram Moolenaar
Problem: Using separate delete() call instead of writefile() 'D' flag. Solution: Use the writefile 'D' flag.
2022-08-30patch 9.0.0336: tests are flaky because of using a common file namev9.0.0336Bram Moolenaar
Problem: Tests are flaky because of using a common file name. Solution: Rename files and directories to be more unique.
2022-08-29patch 9.0.0313: using common name in tests leads to flaky testsv9.0.0313Bram Moolenaar
Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
2022-05-15patch 8.2.4959: using NULL regexp programv8.2.4959Bram Moolenaar
Problem: Using NULL regexp program. Solution: Check for regexp program becoming NULL in more places.
2022-05-11patch 8.2.4938: crash when matching buffer with invalid patternv8.2.4938Bram Moolenaar
Problem: Crash when matching buffer with invalid pattern. Solution: Check for NULL regprog.
2022-05-07patch 8.2.4901: NULL pointer access when using invalid patternv8.2.4901Bram Moolenaar
Problem: NULL pointer access when using invalid pattern. Solution: Check for failed regexp program.
2022-04-03patch 8.2.4670: memory allocation failures for new tab page not testedv8.2.4670Yegappan Lakshmanan
Problem: Memory allocation failures for new tab page not tested. Solution: Add tests with failing memory allocation. (Yegappan Lakshmanan, closes #10067)
2022-04-02patch 8.2.4668: buffer allocation failures insufficiently testedv8.2.4668Yegappan Lakshmanan
Problem: Buffer allocation failures insufficiently tested. Solution: Add tests for memory allocation failures. (Yegappan Lakshmanan, closes #10064)
2021-12-02patch 8.2.3719: MS-Windows: test sometimes runs into existing swap filev8.2.3719Bram Moolenaar
Problem: MS-Windows: test sometimes runs into existing swap file. Solution: Use a different file name.
2021-07-11patch 8.2.3153: URLs with a dash in the scheme are not recognizedv8.2.3153Tsuyoshi CHO
Problem: URLs with a dash in the scheme are not recognized. Solution: Allow for a scheme with a dash, but not at the start or end. (Tsuyoshi CHO, closes #8299)
2021-05-19patch 8.2.2873: not enough tests for writing buffersv8.2.2873Yegappan Lakshmanan
Problem: Not enough tests for writing buffers. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8229)
2020-11-07patch 8.2.1967: the session file does not restore the alternate filev8.2.1967Bram Moolenaar
Problem: The session file does not restore the alternate file. Solution: Add ":balt". Works like ":badd" and also sets the buffer as the alternate file. Use it in the session file. (closes #7269, closes #6714)
2020-10-25patch 8.2.1904: still using default option values after using ":badd +1"v8.2.1904Bram Moolenaar
Problem: Still using default option values after using ":badd +1". Solution: Find a window where options were set. Don't set the window when using ":badd".
2020-10-25patch 8.2.1903: buffer test fails with normal featuresv8.2.1903Bram Moolenaar
Problem: Buffer test fails with normal features. Solution: Use 'numberwidth' instead of 'conceallevel' in the test.
2020-10-25patch 8.2.1902: default option values changed with :badd for existing bufferv8.2.1902Bram Moolenaar
Problem: Default option values are changed when using :badd for an existing buffer. Solution: When calling buflist_new() pass a zero line number. (closes #7195)
2020-09-23patch 8.2.1736: failure to compile a pattern not tested muchv8.2.1736Bram Moolenaar
Problem: Failure to compile a pattern not tested much. Solution: Add tests where a pattern fails to compile. (Yegappan Lakshmanan, closes #7004)
2020-07-21patch 8.2.1260: there is no good test for CursorHoldv8.2.1260Bram Moolenaar
Problem: There is no good test for CursorHold. Solution: Add a test. Remove duplicated test. (Yegappan Lakshmanan, closes #6503
2020-07-11patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar
Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
2020-06-24patch 8.2.1046: insufficient tests for src/buffer.cv8.2.1046Bram Moolenaar
Problem: Insufficient tests for src/buffer.c. Solution: Add more tests. Move comments related tests to a separate file. (Yegappan Lakshmanan, closes #6325)
2020-04-13patch 8.2.0576: some errors are not covered by testsv8.2.0576Bram Moolenaar
Problem: Some errors are not covered by tests. Solution: Add a few more tests. (Dominique Pelle, closes #5920)
2020-03-22patch 8.2.0426: some errors were not tested forv8.2.0426Bram Moolenaar
Problem: Some errors were not tested for. Solution: Add tests. (Dominique Pelle, closes #5824)
2020-02-17patch 8.2.0270: some code not covered by testsv8.2.0270Bram Moolenaar
Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes #5649)
2020-02-16patch 8.2.0261: some code not covered by testsv8.2.0261Bram Moolenaar
Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes #5645)
2020-02-11patch 8.2.0243: insufficient code coverage for ex_docmd.c functionsv8.2.0243Bram Moolenaar
Problem: Insufficient code coverage for ex_docmd.c functions. Solution: Add more tests. (Yegappan Lakshmanan, closes #5618)