diff options
Diffstat (limited to 'tests/end2end/features/utilcmds.feature')
-rw-r--r-- | tests/end2end/features/utilcmds.feature | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/tests/end2end/features/utilcmds.feature b/tests/end2end/features/utilcmds.feature index 9fd702d92..1b5306adb 100644 --- a/tests/end2end/features/utilcmds.feature +++ b/tests/end2end/features/utilcmds.feature @@ -4,43 +4,43 @@ Feature: Miscellaneous utility commands exposed to the user. Given I open data/scroll/simple.html And I run :tab-only - ## :later + ## :cmd-later - Scenario: :later before - When I run :later 500 scroll down + Scenario: :cmd-later before + When I run :cmd-later 500 scroll down Then the page should not be scrolled # wait for scroll to execute so we don't ruin our future And the page should be scrolled vertically - Scenario: :later after - When I run :later 500 scroll down + Scenario: :cmd-later after + When I run :cmd-later 500 scroll down And I wait 0.6s Then the page should be scrolled vertically # for some reason, argparser gives us the error instead, see #2046 @xfail - Scenario: :later with negative delay - When I run :later -1 scroll down + Scenario: :cmd-later with negative delay + When I run :cmd-later -1 scroll down Then the error "I can't run something in the past!" should be shown - Scenario: :later with humongous delay - When I run :later 36893488147419103232 scroll down + Scenario: :cmd-later with humongous delay + When I run :cmd-later 36893488147419103232 scroll down Then the error "Numeric argument is too large for internal int representation." should be shown - ## :repeat + ## :cmd-repeat - Scenario: :repeat simple - When I run :repeat 2 message-info repeat-test + Scenario: :cmd-repeat simple + When I run :cmd-repeat 2 message-info repeat-test Then the message "repeat-test" should be shown And the message "repeat-test" should be shown - Scenario: :repeat zero times - When I run :repeat 0 message-error "repeat-test 2" + Scenario: :cmd-repeat zero times + When I run :cmd-repeat 0 message-error "repeat-test 2" # If we have an error, the test will fail Then no crash should happen - Scenario: :repeat with count - When I run :repeat 3 message-info "repeat-test 3" with count 2 + Scenario: :cmd-repeat with count + When I run :cmd-repeat 3 message-info "repeat-test 3" with count 2 Then the message "repeat-test 3" should be shown And the message "repeat-test 3" should be shown And the message "repeat-test 3" should be shown @@ -48,15 +48,15 @@ Feature: Miscellaneous utility commands exposed to the user. And the message "repeat-test 3" should be shown And the message "repeat-test 3" should be shown - ## :run-with-count + ## :cmd-run-with-count - Scenario: :run-with-count - When I run :run-with-count 2 message-info "run-with-count test" + Scenario: :cmd-run-with-count + When I run :cmd-run-with-count 2 message-info "run-with-count test" Then the message "run-with-count test" should be shown And the message "run-with-count test" should be shown - Scenario: :run-with-count with count - When I run :run-with-count 2 message-info "run-with-count test 2" with count 2 + Scenario: :cmd-run-with-count with count + When I run :cmd-run-with-count 2 message-info "run-with-count test 2" with count 2 Then the message "run-with-count test 2" should be shown And the message "run-with-count test 2" should be shown And the message "run-with-count test 2" should be shown @@ -78,8 +78,8 @@ Feature: Miscellaneous utility commands exposed to the user. # argparser again @xfail - Scenario: :repeat negative times - When I run :repeat -4 scroll-px 10 0 + Scenario: :cmd-repeat negative times + When I run :cmd-repeat -4 scroll-px 10 0 Then the error "A negative count doesn't make sense." should be shown And the page should not be scrolled @@ -110,35 +110,35 @@ Feature: Miscellaneous utility commands exposed to the user. And "hiding debug console" should be logged And no crash should happen - ## :repeat-command + ## :cmd-repeat-last - Scenario: :repeat-command + Scenario: :cmd-repeat-last When I run :message-info test1 - And I run :repeat-command + And I run :cmd-repeat-last Then the message "test1" should be shown And the message "test1" should be shown - Scenario: :repeat-command with count + Scenario: :cmd-repeat-last with count When I run :message-info test2 - And I run :repeat-command with count 2 + And I run :cmd-repeat-last with count 2 Then the message "test2" should be shown And the message "test2" should be shown And the message "test2" should be shown - Scenario: :repeat-command with not-normal command in between + Scenario: :cmd-repeat-last with not-normal command in between When I run :message-info test3 And I run :prompt-accept - And I run :repeat-command + And I run :cmd-repeat-last Then the message "test3" should be shown And the error "prompt-accept: This command is only allowed in prompt/yesno mode, not normal." should be shown And the error "prompt-accept: This command is only allowed in prompt/yesno mode, not normal." should be shown - Scenario: :repeat-command with mode-switching command + Scenario: :cmd-repeat-last with mode-switching command When I open data/hints/link_blank.html And I run :tab-only And I hint with args "all tab-fg" And I run :mode-leave - And I run :repeat-command + And I run :cmd-repeat-last And I wait for "hints: *" in the log And I run :hint-follow a And I wait until data/hello.txt is loaded @@ -151,7 +151,7 @@ Feature: Miscellaneous utility commands exposed to the user. Scenario: Using :debug-log-capacity When I run :debug-log-capacity 100 And I run :message-info oldstuff - And I run :repeat 20 message-info otherstuff + And I run :cmd-repeat 20 message-info otherstuff And I run :message-info newstuff And I open qute://log Then the page should contain the plaintext "newstuff" |