diff options
author | Daniel Fiser <danfis@danfis.cz> | 2017-02-22 14:16:46 +0100 |
---|---|---|
committer | Daniel Fiser <danfis@danfis.cz> | 2017-02-22 14:16:46 +0100 |
commit | 76bb11c6aa3b22de1a4c9730eaf5e49a22d7a816 (patch) | |
tree | c81a63b6c05015252f0d1b98085de9ed874fd075 | |
parent | 6e1ac8be78b57da26975823f8c449f8f05f3c816 (diff) | |
download | qutebrowser-76bb11c6aa3b22de1a4c9730eaf5e49a22d7a816.tar.gz qutebrowser-76bb11c6aa3b22de1a4c9730eaf5e49a22d7a816.zip |
Added test for :session-save --only-active-window
-rw-r--r-- | tests/end2end/features/sessions.feature | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/end2end/features/sessions.feature b/tests/end2end/features/sessions.feature index abb399453..45f413ce5 100644 --- a/tests/end2end/features/sessions.feature +++ b/tests/end2end/features/sessions.feature @@ -278,6 +278,32 @@ Feature: Saving and loading sessions Then "Saved session quiet_session." should not be logged And the session quiet_session should exist + Scenario: Saving session with --only-active-window + When I open data/numbers/1.txt + And I open data/numbers/2.txt in a new tab + And I open data/numbers/3.txt in a new window + And I open data/numbers/4.txt in a new tab + And I open data/numbers/5.txt in a new tab + And I run :session-save --only-active-window window_session_name + And I run :window-only + And I run :tab-only + And I run :session-load window_session_name + Then the session should look like: + windows: + - active: true + tabs: + - history: + - active: true + url: http://localhost:*/data/numbers/5.txt + - tabs: + - history: + - url: http://localhost:*/data/numbers/3.txt + - history: + - url: http://localhost:*/data/numbers/4.txt + - history: + - active: true + url: http://localhost:*/data/numbers/5.txt + # :session-delete Scenario: Deleting a directory |