Update tests for new implementation

This commit is contained in:
Jay Kamat 2018-04-16 23:27:06 -04:00
parent 646e92707a
commit cbb246fd0b
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5
2 changed files with 7 additions and 4 deletions

View File

@ -75,7 +75,6 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
'?': lambda search: search_fn(self._win_id, ["-r", "--", search]),
}
def prefix(self):
"""Get the currently entered command prefix."""
text = self.text()

View File

@ -40,19 +40,23 @@ Feature: Searching on a page
Then "space " should be found
Scenario: Searching with / and slash in search term (issue 507)
When I run :set-cmd-text -s //slash
When I run :set-cmd-text //slash
And I run :command-accept
And I wait for "search found /slash" in the log
Then "/slash" should be found
Scenario: Searching with arguments at start of search term
When I run :set-cmd-text -s /-r reversed
When I run :set-cmd-text /-r reversed
And I run :command-accept
And I wait for "search found -r reversed" in the log
Then "-r reversed" should be found
Scenario: Searching with semicolons in search term
When I run :search ;; semi
When I run :set-cmd-text /;
And I run :fake-key -g ;
And I run :fake-key -g <space>
And I run :fake-key -g semi
And I run :command-accept
And I wait for "search found ;; semi" in the log
Then ";; semi" should be found