Add basename to "download finished" message
This commit is contained in:
parent
0053548036
commit
7611281563
@ -657,7 +657,7 @@ class DownloadItem(QObject):
|
||||
self.reply = None
|
||||
self.finished.emit()
|
||||
self.done = True
|
||||
log.downloads.debug("Download finished")
|
||||
log.downloads.debug("Download {} finished".format(self.basename))
|
||||
self.data_changed.emit()
|
||||
|
||||
@pyqtSlot()
|
||||
|
@ -308,7 +308,7 @@ Feature: Various utility commands.
|
||||
When I set content -> enable-pdfjs to false
|
||||
And I set storage -> prompt-download-directory to false
|
||||
And I open data/misc/test.pdf
|
||||
Then "Download finished" should be logged
|
||||
Then "Download test.pdf finished" should be logged
|
||||
|
||||
@qtwebengine_todo: pdfjs is not implemented yet
|
||||
Scenario: Downloading a pdf via pdf.js button (issue 1214)
|
||||
|
@ -45,7 +45,13 @@ def clean_old_downloads(quteproc):
|
||||
|
||||
@bdd.when("I wait until the download is finished")
|
||||
def wait_for_download_finished(quteproc):
|
||||
quteproc.wait_for(category='downloads', message='Download finished')
|
||||
quteproc.wait_for(category='downloads', message='Download * finished')
|
||||
|
||||
|
||||
@bdd.when(bdd.parsers.parse("I wait until the download {name} is finished"))
|
||||
def wait_for_download_finished_name(quteproc, name):
|
||||
quteproc.wait_for(category='downloads',
|
||||
message='Download {} finished'.format(name))
|
||||
|
||||
|
||||
@bdd.when("I download an SSL page")
|
||||
|
@ -98,14 +98,16 @@ def test_ascii_locale(request, httpbin, tmpdir, quteproc_new):
|
||||
url = 'http://localhost:{port}/data/downloads/ä-issue908.bin'.format(
|
||||
port=httpbin.port)
|
||||
quteproc_new.send_cmd(':download {}'.format(url))
|
||||
quteproc_new.wait_for(category='downloads', message='Download finished')
|
||||
quteproc_new.wait_for(category='downloads',
|
||||
message='Download ?-issue908.bin finished')
|
||||
|
||||
# Test :prompt-open-download
|
||||
quteproc_new.set_setting('storage', 'prompt-download-directory', 'true')
|
||||
quteproc_new.send_cmd(':download {}'.format(url))
|
||||
quteproc_new.send_cmd(':prompt-open-download "{}" -c pass'
|
||||
.format(sys.executable))
|
||||
quteproc_new.wait_for(category='downloads', message='Download finished')
|
||||
quteproc_new.wait_for(category='downloads',
|
||||
message='Download ä-issue908.bin finished')
|
||||
quteproc_new.wait_for(category='downloads',
|
||||
message='Opening * with [*python*]')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user