Preserve back_and_forth during restart

Add new key "previous_workspace_name" to the json dump of the root container.
This commit is contained in:
Albert Safin
2018-12-10 21:51:30 +07:00
parent f08119298e
commit 64ab1f42b7
5 changed files with 29 additions and 3 deletions

View File

@ -163,6 +163,14 @@ cmd 'scratchpad show';
cmd 'workspace back_and_forth';
is(focused_ws, '6: baz', 'workspace 6 now focused');
################################################################################
# See if BAF is preserved after restart
################################################################################
cmd 'restart';
cmd 'workspace back_and_forth';
is(focused_ws, '5: foo', 'workspace 5 focused after restart');
exit_gracefully($pid);
done_testing;