aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/061_undo_tree_spec.lua
Commit message (Collapse)AuthorAge
* tests: Use new write_file() function in tests.Lucas Hoffmann2015-06-30
|
* tests: 061_undo_tree_spec: minor editsJustin M. Keyes2015-06-22
|
* tests: Repeat a flaky part of the migrated test 61.Lucas Hoffmann2015-06-22
| | | | | | This is the part of the test that relies on wall clock time and sometimes fails if the system is under load. The test is repeated up to three times before a failure is reported to the user.
* tests: Split test 61 into several it() blocks.Lucas Hoffmann2015-06-22
|
* tests: Fix an further simplify migrated test 61.Lucas Hoffmann2015-06-22
| | | | | | | | :undojoin can only be used inside scripts and command chains. So it has to be tested inside an explicit `source()` call. Also add a new test case for the different behavior when sourceing normal mode commands from a script or inserting them interactively.
* tests: Don't set ul in migrated test 61.Lucas Hoffmann2015-06-22
| | | | | | | | | | The legacy test uses `set ul=100` to break the changes into blocks that can be undone separately. This is needed because the legacy test is sourced from a file and changes would be grouped into on undo block by default. The lua test suite does not have this restriction. Also add a new test case to test this effect of using `set ul=100` in a sourced script.
* tests: Migrate legacy test 61.Lucas Hoffmann2015-06-22
This test is real time based as it also tests the `:earlier` and `:later` commands with time arguments (using `:sleep`). This can sometimes case the test to fail on systems that are under heavy load or where the time interval between creating the expected buffer state and the `:earlier` or `:later` command that tries to jump to it changes. To be system independent we use nvim's `:sleep` command and `wait()` for it in the test suit. The legacy vim test writes to test.out a lot with `:.w >>test.out`. This does currently not work in the lua test suite so the test is modernized to use busted's assertions instead of the output file. This test was treated special in the legacy Makefile but after the conversion the related code can be removed.