qutebrowser/tests/unit
Ryan Roden-Corrent 38bb3673db Preserve a backup if editor callback fails.
Currently the editor deletes its temp file whenever editing is finished.
With this patch, the file will not be deleted if the editor callback
encounters an exception.

One example is if the tab containing the edited element is closed. The
editor errors with "Edited element vanished", but with this patch it
will also print "Backup at ..." so the user does not lose their work.

Resolves #1596.

Supersedes #3641, using the cleaner approach started in #1677.
2018-03-12 08:34:50 -04:00
..
browser Greasemonkey: handle downloads that complete fast 2018-03-03 15:02:43 +13:00
commands Update copyright years 2018-02-05 12:19:50 +01:00
completion Make bindings.default only settable in autoconfig.yml 2018-03-07 18:30:44 +01:00
config Fix lint 2018-03-12 08:51:36 +01:00
javascript Greasemonkey: Add test for @require support. 2018-03-03 15:02:42 +13:00
keyinput Make sure keys with modifiers get handled as special 2018-03-09 09:04:28 +01:00
mainwindow Use a different directory for file prompt tests 2018-02-19 22:08:42 +01:00
misc Preserve a backup if editor callback fails. 2018-03-12 08:34:50 -04:00
scripts Update copyright years 2018-02-05 12:19:50 +01:00
utils Be explicit about expected output in test 2018-03-11 14:35:15 +01:00
test_app.py Update copyright years 2018-02-05 12:19:50 +01:00