2017-03-31 17:16:31 +02:00
|
|
|
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
|
|
|
|
|
2016-08-11 05:15:08 +02:00
|
|
|
Feature: Using completion
|
2016-09-01 04:25:34 +02:00
|
|
|
|
|
|
|
Scenario: No warnings when completing with one entry (#1600)
|
|
|
|
Given I open about:blank
|
|
|
|
When I run :set-cmd-text -s :open
|
|
|
|
And I run :completion-item-focus next
|
|
|
|
Then no crash should happen
|
2016-09-04 20:19:16 +02:00
|
|
|
|
|
|
|
Scenario: Hang with many spaces in completion (#1919)
|
|
|
|
# Generate some history data
|
|
|
|
When I open data/numbers/1.txt
|
|
|
|
And I open data/numbers/2.txt
|
|
|
|
And I open data/numbers/3.txt
|
|
|
|
And I open data/numbers/4.txt
|
|
|
|
And I open data/numbers/5.txt
|
|
|
|
And I open data/numbers/6.txt
|
|
|
|
And I open data/numbers/7.txt
|
|
|
|
And I open data/numbers/8.txt
|
|
|
|
And I open data/numbers/9.txt
|
|
|
|
And I open data/numbers/10.txt
|
|
|
|
And I run :set-cmd-text :open a b
|
|
|
|
# Make sure qutebrowser doesn't hang
|
|
|
|
And I run :message-info "Still alive!"
|
|
|
|
Then the message "Still alive!" should be shown
|
2016-10-04 13:36:49 +02:00
|
|
|
|
|
|
|
Scenario: Crash when pasting emoji into the command line (#2007)
|
|
|
|
Given I open about:blank
|
|
|
|
When I run :set-cmd-text -s :🌀
|
|
|
|
Then no crash should happen
|
2016-08-11 05:15:08 +02:00
|
|
|
|
|
|
|
Scenario: Using command completion
|
|
|
|
When I run :set-cmd-text :
|
2017-02-16 03:29:00 +01:00
|
|
|
Then the completion model should be command
|
2016-08-11 05:15:08 +02:00
|
|
|
|
|
|
|
Scenario: Using help completion
|
|
|
|
When I run :set-cmd-text -s :help
|
2017-02-16 03:29:00 +01:00
|
|
|
Then the completion model should be helptopic
|
2016-08-11 05:15:08 +02:00
|
|
|
|
|
|
|
Scenario: Using quickmark completion
|
|
|
|
When I run :set-cmd-text -s :quickmark-load
|
2017-02-16 03:29:00 +01:00
|
|
|
Then the completion model should be quickmark
|
2016-08-11 05:15:08 +02:00
|
|
|
|
|
|
|
Scenario: Using bookmark completion
|
|
|
|
When I run :set-cmd-text -s :bookmark-load
|
2017-02-16 03:29:00 +01:00
|
|
|
Then the completion model should be bookmark
|
2016-08-11 05:15:08 +02:00
|
|
|
|
|
|
|
Scenario: Using bind completion
|
|
|
|
When I run :set-cmd-text -s :bind X
|
2017-02-16 03:29:00 +01:00
|
|
|
Then the completion model should be bind
|
2016-08-11 05:15:08 +02:00
|
|
|
|
2017-09-11 16:54:39 +02:00
|
|
|
# See #2956
|
2017-09-11 19:33:27 +02:00
|
|
|
@flaky
|
2016-08-11 05:15:08 +02:00
|
|
|
Scenario: Using session completion
|
|
|
|
Given I open data/hello.txt
|
|
|
|
And I run :session-save hello
|
|
|
|
When I run :set-cmd-text -s :session-load
|
|
|
|
And I run :completion-item-focus next
|
|
|
|
And I run :completion-item-focus next
|
|
|
|
And I run :session-delete hello
|
|
|
|
And I run :command-accept
|
|
|
|
Then the error "Session hello not found!" should be shown
|
|
|
|
|
|
|
|
Scenario: Using option completion
|
2017-08-12 21:07:17 +02:00
|
|
|
When I run :set-cmd-text -s :set
|
2017-02-16 03:29:00 +01:00
|
|
|
Then the completion model should be option
|
2016-08-11 05:15:08 +02:00
|
|
|
|
|
|
|
Scenario: Using value completion
|
2017-08-12 21:07:17 +02:00
|
|
|
When I run :set-cmd-text -s :set aliases
|
2017-02-16 03:29:00 +01:00
|
|
|
Then the completion model should be value
|
2016-08-11 05:15:08 +02:00
|
|
|
|
|
|
|
Scenario: Deleting an open tab via the completion
|
|
|
|
Given I have a fresh instance
|
|
|
|
When I open data/hello.txt
|
|
|
|
And I open data/hello2.txt in a new tab
|
|
|
|
And I run :set-cmd-text -s :buffer
|
2017-10-05 20:03:35 +02:00
|
|
|
And I wait for "Setting completion pattern ''" in the log
|
2016-08-11 05:15:08 +02:00
|
|
|
And I run :completion-item-focus next
|
2017-10-04 09:08:59 +02:00
|
|
|
And I wait for "setting text = ':buffer 0/1', *" in the log
|
2016-08-11 05:15:08 +02:00
|
|
|
And I run :completion-item-focus next
|
2017-10-04 09:08:59 +02:00
|
|
|
And I wait for "setting text = ':buffer 0/2', *" in the log
|
2016-08-11 05:15:08 +02:00
|
|
|
And I run :completion-item-del
|
|
|
|
Then the following tabs should be open:
|
|
|
|
- data/hello.txt (active)
|
2016-11-30 13:35:08 +01:00
|
|
|
|
|
|
|
Scenario: Go to tab after moving a tab
|
|
|
|
Given I have a fresh instance
|
|
|
|
When I open data/hello.txt
|
|
|
|
And I open data/hello2.txt in a new tab
|
|
|
|
# Tricking completer into not updating tabs
|
|
|
|
And I run :set-cmd-text -s :buffer
|
|
|
|
And I run :tab-move 1
|
|
|
|
And I run :buffer hello2.txt
|
|
|
|
Then the following tabs should be open:
|
|
|
|
- data/hello2.txt (active)
|
|
|
|
- data/hello.txt
|