diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-20 14:22:30 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-20 18:00:38 +0100 |
commit | 487f90443cd1bf66bf2368b7a5c004f4e1b27777 (patch) | |
tree | 765fc96f316fc5eae8c764407aaa3be61587cc45 /tests | |
parent | 673c0be1798af4a35945ce77c07d4ae1b44bd10c (diff) | |
download | qutebrowser-487f90443cd1bf66bf2368b7a5c004f4e1b27777.tar.gz qutebrowser-487f90443cd1bf66bf2368b7a5c004f4e1b27777.zip |
Rename :run-macro and :record-macro
See #6022
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end2end/features/keyinput.feature | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/end2end/features/keyinput.feature b/tests/end2end/features/keyinput.feature index 0e344947d..2b86605f2 100644 --- a/tests/end2end/features/keyinput.feature +++ b/tests/end2end/features/keyinput.feature @@ -76,12 +76,12 @@ Feature: Keyboard input # Macros Scenario: Recording a simple macro - When I run :record-macro + When I run :macro-record And I press the key "a" And I run :message-info "foo 1" And I run :message-info "bar 1" - And I run :record-macro - And I run :run-macro with count 2 + And I run :macro-record + And I run :macro-run with count 2 And I press the key "a" Then the message "foo 1" should be shown And the message "bar 1" should be shown @@ -91,11 +91,11 @@ Feature: Keyboard input And the message "bar 1" should be shown Scenario: Recording a named macro - When I run :record-macro foo + When I run :macro-record foo And I run :message-info "foo 2" And I run :message-info "bar 2" - And I run :record-macro foo - And I run :run-macro foo + And I run :macro-record foo + And I run :macro-run foo Then the message "foo 2" should be shown And the message "bar 2" should be shown And the message "foo 2" should be shown @@ -104,7 +104,7 @@ Feature: Keyboard input Scenario: Running an invalid macro Given I open data/scroll/simple.html And I run :tab-only - When I run :run-macro + When I run :macro-run And I press the key "b" Then the error "No macro recorded in 'b'!" should be shown And no crash should happen @@ -112,34 +112,34 @@ Feature: Keyboard input Scenario: Running an invalid named macro Given I open data/scroll/simple.html And I run :tab-only - When I run :run-macro bar + When I run :macro-run bar Then the error "No macro recorded in 'bar'!" should be shown And no crash should happen Scenario: Running a macro with a mode-switching command When I open data/hints/html/simple.html - And I run :record-macro a + And I run :macro-record a And I run :hint links normal And I wait for "hints: *" in the log And I run :leave-mode - And I run :record-macro a - And I run :run-macro + And I run :macro-record a + And I run :macro-run And I press the key "a" And I wait for "hints: *" in the log Then no crash should happen Scenario: Cancelling key input - When I run :record-macro + When I run :macro-record And I press the key "<Escape>" Then "Leaving mode KeyMode.record_macro (reason: leave current)" should be logged Scenario: Ignoring non-register keys - When I run :record-macro + When I run :macro-record And I press the key "<Menu>" And I press the key "c" And I run :message-info "foo 3" - And I run :record-macro - And I run :run-macro + And I run :macro-record + And I run :macro-run And I press the key "c" Then the message "foo 3" should be shown And the message "foo 3" should be shown |