add integration tests for reserved filenames
This commit is contained in:
parent
bc4430e5d9
commit
07b3a7db7c
@ -665,6 +665,7 @@ class FilenamePrompt(_BasePrompt):
|
||||
return path
|
||||
|
||||
def _show_error(self, msg):
|
||||
log.prompt.error(msg)
|
||||
QToolTip.showText(self._lineedit.mapToGlobal(QPoint(0, 0)), msg)
|
||||
|
||||
def accept(self, value=None):
|
||||
|
@ -126,6 +126,20 @@ Feature: Downloading things from a website.
|
||||
Then the downloaded file ../foo should not exist
|
||||
And the downloaded file foo should exist
|
||||
|
||||
@windows
|
||||
Scenario: Downloading a file to a reserved path
|
||||
When I open data/downloads/download.bin
|
||||
And I run :prompt-accept COM1
|
||||
And I run :prompt-cancel
|
||||
Then "Invalid filename" should be logged
|
||||
|
||||
@windows
|
||||
Scenario: Downloading a file to a drive-relative working directory
|
||||
When I open data/downloads/download.bin
|
||||
And I run :prompt-accept C:foobar
|
||||
And I run :prompt-cancel
|
||||
Then "Invalid filename" should be logged
|
||||
|
||||
## :download-retry
|
||||
|
||||
Scenario: Retrying a failed download
|
||||
|
Loading…
Reference in New Issue
Block a user