From pylbrecht, 1 Month ago, written in Plain Text.
This paste will slip away in 1 Second.
Embed
  1. py38-pyqt installed: adblock==0.5.0,attrs==21.2.0,beautifulsoup4==4.10.0,certifi==2021.10.8,charset-normalizer==2.0.7,cheroot==8.5.2,click==8.0.3,colorama==0.4.4,coverage==6.1.1,EasyProcess==0.3,execnet==1.9.0,filelock==3.3.2,Flask==2.0.2,glob2==0.7,hunter==3.3.8,hypothesis==6.24.1,icdiff==2.0.4,idna==3.3,importlib-resources==5.4.0,iniconfig==1.1.1,itsdangerous==2.0.1,jaraco.functools==3.4.0,Jinja2==3.0.2,Mako==1.1.5,manhole==1.8.0,MarkupSafe==2.0.1,more-itertools==8.10.0,packaging==21.2,parse==1.19.0,parse-type==0.5.2,pluggy==1.0.0,pprintpp==0.4.0,py==1.10.0,py-cpuinfo==8.0.0,Pygments==2.10.0,pyparsing==2.4.7,PyQt5==5.15.6,PyQt5-Qt5==5.15.2,PyQt5-sip==12.9.0,PyQtWebEngine==5.15.5,PyQtWebEngine-Qt5==5.15.2,pytest==6.2.5,pytest-bdd==4.1.0,pytest-benchmark==3.4.1,pytest-cov==3.0.0,pytest-forked==1.3.0,pytest-icdiff==0.5,pytest-instafail==0.4.2,pytest-mock==3.6.1,pytest-qt==4.0.2,pytest-repeat==0.9.1,pytest-rerunfailures==10.2,pytest-xdist==2.4.0,pytest-xvfb==2.0.0,PyVirtualDisplay==2.2,PyYAML==6.0,requests==2.26.0,requests-file==1.5.1,six==1.16.0,sortedcontainers==2.4.0,soupsieve==2.2.1,tldextract==3.1.2,toml==0.10.2,tomli==1.2.2,typing-extensions==3.10.0.2,urllib3==1.26.7,vulture==2.3,Werkzeug==2.0.2,zipp==3.6.0
  2. py38-pyqt run-test-pre: PYTHONHASHSEED='1670401775'
  3. py38-pyqt run-test: commands[0] | /home/palbrecht/dev/qutebrowser/.tox/py38-pyqt/bin/python scripts/link_pyqt.py --tox /home/palbrecht/dev/qutebrowser/.tox/py38-pyqt
  4. LINK_PYQT_SKIP set, exiting...
  5. py38-pyqt run-test: commands[1] | /home/palbrecht/dev/qutebrowser/.tox/py38-pyqt/bin/python -bb -m pytest --color=auto --lf
  6. ==================================================================================== test session starts ====================================================================================
  7. platform linux -- Python 3.8.0, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
  8. cachedir: .tox/py38-pyqt/.pytest_cache
  9. benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
  10. PyQt5 5.15.6 -- Qt runtime 5.15.2 -- Qt compiled 5.15.2
  11. rootdir: /home/palbrecht/dev/qutebrowser, configfile: pytest.ini, testpaths: tests
  12. plugins: xvfb-2.0.0, xdist-2.4.0, instafail-0.4.2, icdiff-0.5, cov-3.0.0, repeat-0.9.1, bdd-4.1.0, benchmark-3.4.1, hypothesis-6.24.1, rerunfailures-10.2, mock-3.6.1, forked-1.3.0, qt-4.0.2
  13. collected 9 items / 4 deselected / 5 selected
  14. run-last-failure: rerun previous 5 failures (skipped 166 files)
  15.  
  16. tests/end2end/features/test_downloads_bdd.py F
  17.  
  18. ________________________________________________________________________________ test_downloading_via_pdfjs _________________________________________________________________________________
  19.  
  20. request = <FixtureRequest for <Function test_downloading_via_pdfjs>>
  21.  
  22.     @pytest.mark.usefixtures(*function_args)
  23.     def scenario_wrapper(request):
  24. >       _execute_scenario(feature, scenario, request)
  25.  
  26. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:165:
  27. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  28. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:136: in _execute_scenario
  29.     _execute_step_function(request, scenario, step, step_func)
  30. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:106: in _execute_step_function
  31.     return_value = step_func(**kwargs)
  32. tests/end2end/features/conftest.py:401: in javascript_message_when
  33.     quteproc.wait_for_js(message)
  34. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  35.  
  36. self = <end2end.fixtures.quteprocess.QuteProc object at 0x7efc7f51a5e0>, message = 'PDF * [*] (PDF.js: *)'
  37.  
  38.     def wait_for_js(self, message):
  39.         """Wait for the given javascript console message.
  40.  
  41.         Return:
  42.             The LogLine.
  43.         """
  44. >       line = self.wait_for(category='js',
  45.                              message='[*] {}'.format(message))
  46. E       end2end.fixtures.testprocess.WaitForTimeout: Timed out after 5000ms waiting for {'category': 'js', 'message': '[*] PDF * [*] (PDF.js: *)'}.
  47.  
  48. tests/end2end/fixtures/quteprocess.py:587: WaitForTimeout
  49. ------------------------------------------------------------------------------------ qutebrowser output -------------------------------------------------------------------------------------
  50. [449 lines suppressed, use -v to show]
  51. 15:19:56.536 DEBUG    downloads  downloads:_after_create_parent_question:754 Setting filename to /tmp/qutebrowser-downloads-87tcsbok/tmpz342u9vx_test.pdf
  52. 15:19:56.536 DEBUG    downloads  webenginedownloads:_on_state_changed:64 State for <qutebrowser.browser.webengine.webenginedownloads.DownloadItem basename='tmpz342u9vx_test.pdf'> changed to DownloadInProgress
  53. 15:19:56.548 DEBUG    downloads  webenginedownloads:_on_state_changed:64 State for <qutebrowser.browser.webengine.webenginedownloads.DownloadItem basename='tmpz342u9vx_test.pdf'> changed to DownloadCompleted
  54. 15:19:56.548 DEBUG    downloads  webenginedownloads:_on_state_changed:72 Download tmpz342u9vx_test.pdf finished
  55. 15:19:56.548 DEBUG    downloads  downloads:_on_begin_remove_row:1078 _on_begin_remove_row with idx 0, webengine True
  56. 15:19:56.549 DEBUG    downloads  downloads:_remove_item:997 Removed download 1: tmpz342u9vx_test.pdf [100%|16.28kB]
  57. 15:19:56.549 DEBUG    webview    tabbedbrowser:tabopen:593 Creating new tab with URL PyQt5.QtCore.QUrl('qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'), background False, related True, idx None
  58. 15:19:56.551 DEBUG    webview    tabbedbrowser:_get_new_tab_idx:680 tabs.new_position next -> opening new tab at 1, next left: 0 / right: 2
  59. 15:19:56.552 DEBUG    webview    browsertab:_on_before_load_started:1041 Going to start loading: qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf
  60. 15:19:56.552 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 1 to 'qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'
  61. 15:19:56.552 DEBUG    misc       eventfilter:eventFilter:53 <qutebrowser.browser.webengine.webview.WebEngineView object at 0x7effac0111f0> got new child <PyQt5.QtWidgets.QWidget object at 0x7effac011940>, installing filter
  62. 15:19:56.554 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtWidgets.QWidget object at 0x7effac6a3ee0>
  63. 15:19:56.560 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtWidgets.QWidget object at 0x7effac0118b0>
  64. 15:19:56.560 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtCore.QObject object at 0x7effac0118b0>
  65. 15:19:56.560 DEBUG    modes      tabbedbrowser:_on_current_changed:832 Current tab changed, focusing <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url=''>
  66. 15:19:56.560 DEBUG    modes      tabbedbrowser:_on_current_changed:839 Mode before tab change: normal (mode_on_change = normal)
  67. 15:19:56.561 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.hint (reason tab changed) as we're in mode KeyMode.normal
  68. 15:19:56.561 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.caret (reason tab changed) as we're in mode KeyMode.normal
  69. 15:19:56.561 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.insert (reason tab changed) as we're in mode KeyMode.normal
  70. 15:19:56.561 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.passthrough (reason tab changed) as we're in mode KeyMode.normal
  71. 15:19:56.561 DEBUG    modes      tabbedbrowser:_on_current_changed:850 Mode after tab change: normal (mode_on_change = normal)
  72. 15:19:56.573 DEBUG    webview    browsertab:_on_navigation_request:1065 navigation request: url qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data…, type Type.typed, is_main_frame True
  73. 15:19:56.574 DEBUG    webview    webenginetab:_store_match_data:151 Active search match: 0/0
  74. 15:19:56.574 DEBUG    webview    browsertab:_set_load_status:1007 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url=''>: LoadStatus.loading
  75. 15:19:56.574 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_status_changed(<LoadStatus.loading: 6>) (tab 1)
  76. 15:19:56.575 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_started() (tab 1)
  77. 15:19:56.581 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf
  78. 15:19:56.581 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf, path: /web/viewer.html, host pdfjs
  79. 15:19:56.582 DEBUG    network    webenginequtescheme:requestStarted:118 Returning text/html data
  80. 15:19:56.586 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_url_changed(PyQt5.QtCore.QUrl('qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf')) (tab 1)
  81. 15:19:56.586 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 1 to 'qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'
  82. 15:19:56.594 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 1 to 'PDF.js viewer'
  83. 15:19:56.599 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.css
  84. 15:19:56.599 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.css, path: /web/viewer.css, host pdfjs
  85. 15:19:56.602 DEBUG    network    webenginequtescheme:requestStarted:118 Returning text/css data
  86. 15:19:56.602 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/build/pdf.js
  87. 15:19:56.603 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/build/pdf.js, path: /build/pdf.js, host pdfjs
  88. 15:19:56.603 DEBUG    network    webenginequtescheme:requestStarted:118 Returning application/javascript data
  89. 15:19:56.603 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.js
  90. 15:19:56.603 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.js, path: /web/viewer.js, host pdfjs
  91. 15:19:56.603 DEBUG    network    webenginequtescheme:requestStarted:118 Returning application/javascript data
  92. 15:19:56.612 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/build/pdf.js:2358] Uncaught SyntaxError: Unexpected token '='
  93. 15:19:56.616 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/web/viewer.js:1561] Uncaught SyntaxError: Unexpected token '='
  94. 15:19:56.621 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewThumbnail.svg
  95. 15:19:56.621 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewThumbnail.svg, path: /web/images/toolbarButton-viewThumbnail.svg, host pdfjs
  96. 15:19:56.621 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  97. 15:19:56.622 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewOutline.svg
  98. 15:19:56.622 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewOutline.svg, path: /web/images/toolbarButton-viewOutline.svg, host pdfjs
  99. 15:19:56.622 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  100. 15:19:56.625 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewAttachments.svg
  101. 15:19:56.625 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewAttachments.svg, path: /web/images/toolbarButton-viewAttachments.svg, host pdfjs
  102. 15:19:56.625 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  103. 15:19:56.625 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewLayers.svg
  104. 15:19:56.625 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewLayers.svg, path: /web/images/toolbarButton-viewLayers.svg, host pdfjs
  105. 15:19:56.625 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  106. 15:19:56.626 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-sidebarToggle.svg
  107. 15:19:56.626 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-sidebarToggle.svg, path: /web/images/toolbarButton-sidebarToggle.svg, host pdfjs
  108. 15:19:56.626 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  109. 15:19:56.627 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-search.svg
  110. 15:19:56.627 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-search.svg, path: /web/images/toolbarButton-search.svg, host pdfjs
  111. 15:19:56.627 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  112. 15:19:56.627 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-pageUp.svg
  113. 15:19:56.627 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-pageUp.svg, path: /web/images/toolbarButton-pageUp.svg, host pdfjs
  114. 15:19:56.628 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  115. 15:19:56.629 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-pageDown.svg
  116. 15:19:56.629 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-pageDown.svg, path: /web/images/toolbarButton-pageDown.svg, host pdfjs
  117. 15:19:56.629 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  118. 15:19:56.630 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-presentationMode.svg
  119. 15:19:56.630 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-presentationMode.svg, path: /web/images/toolbarButton-presentationMode.svg, host pdfjs
  120. 15:19:56.631 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  121. 15:19:56.632 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-openFile.svg
  122. 15:19:56.632 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-openFile.svg, path: /web/images/toolbarButton-openFile.svg, host pdfjs
  123. 15:19:56.632 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  124. 15:19:56.633 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-print.svg
  125. 15:19:56.633 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-print.svg, path: /web/images/toolbarButton-print.svg, host pdfjs
  126. 15:19:56.633 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  127. 15:19:56.638 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-download.svg
  128. 15:19:56.638 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-download.svg, path: /web/images/toolbarButton-download.svg, host pdfjs
  129. 15:19:56.638 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  130. 15:19:56.639 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-bookmark.svg
  131. 15:19:56.639 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-bookmark.svg, path: /web/images/toolbarButton-bookmark.svg, host pdfjs
  132. 15:19:56.639 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  133. 15:19:56.641 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg
  134. 15:19:56.641 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg, path: /web/images/toolbarButton-secondaryToolbarToggle.svg, host pdfjs
  135. 15:19:56.641 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  136. 15:19:56.641 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-zoomOut.svg
  137. 15:19:56.641 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-zoomOut.svg, path: /web/images/toolbarButton-zoomOut.svg, host pdfjs
  138. 15:19:56.691 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  139. 15:19:56.708 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-zoomIn.svg
  140. 15:19:56.708 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-zoomIn.svg, path: /web/images/toolbarButton-zoomIn.svg, host pdfjs
  141. 15:19:56.709 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  142. 15:19:56.709 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-menuArrow.svg
  143. 15:19:56.709 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-menuArrow.svg, path: /web/images/toolbarButton-menuArrow.svg, host pdfjs
  144. 15:19:56.709 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  145. 15:19:56.711 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf:406] Uncaught TypeError: Cannot read property 'set' of undefined
  146. 15:19:56.736 DEBUG    webview    browsertab:_set_load_status:1007 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url='qute://pdfjs/web/viewer.html?filename=tmpz342u9vx_test.pdf&file=&source=http://localhost:40603/data…'>: LoadStatus.success
  147. 15:19:56.736 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_status_changed(<LoadStatus.success: 2>) (tab 1)
  148. 15:19:56.737 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_finished(True) (tab 1)
  149. 15:19:56.737 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.insert (reason load started) as we're in mode KeyMode.normal
  150. 15:19:56.738 DEBUG    modes      tabbedbrowser:_leave_modes_on_load:737 Ignoring leave_on_load request due to setting.
  151. --------------------------------------------------------------------------------------- server output ---------------------------------------------------------------------------------------
  152.  * Running on http://127.0.0.1:40603/ (Press CTRL+C to quit)
  153. {"verb": "GET", "path": "/data/misc/test.pdf", "status": 200}
  154. {"verb": "GET", "path": "/data/misc/test.pdf", "status": 200}
  155. --------------------------------------------------------------------------------------- BDD scenario ----------------------------------------------------------------------------------------
  156. Feature: Downloading things from a website.
  157.   Scenario: Downloading via pdfjs (features/downloads.feature:644)
  158.     Given I set up a temporary download dir (0.95s)
  159.     And I clean old downloads (0.01s)
  160.     And I set downloads.remove_finished to -1 (0.00s)
  161.     Given pdfjs is available (0.00s)
  162.     When I set downloads.location.prompt to false (0.01s)
  163.     And I set content.pdfjs to true (0.01s)
  164.     And I open data/misc/test.pdf without waiting (0.01s)
  165.     And I wait for the javascript message "PDF * [*] (PDF.js: *)" (4.98s)
  166.     And I run :click-element id download (0.00s)
  167.     And I wait until the download is finished (0.00s)
  168. ------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
  169. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  170. INFO     ipc:ipc.py:481 Opening in existing instance
  171. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":config-clear"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  172. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  173. INFO     ipc:ipc.py:481 Opening in existing instance
  174. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"messages.timeout\\" \\"0\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  175. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  176. INFO     ipc:ipc.py:481 Opening in existing instance
  177. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"auto_save.interval\\" \\"0\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  178. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  179. INFO     ipc:ipc.py:481 Opening in existing instance
  180. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"new_instance_open_target_window\\" \\"last-opened\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  181. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  182. INFO     ipc:ipc.py:481 Opening in existing instance
  183. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"downloads.location.prompt\\" \\"false\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  184. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  185. INFO     ipc:ipc.py:481 Opening in existing instance
  186. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"downloads.location.remember\\" \\"false\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  187. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  188. INFO     ipc:ipc.py:481 Opening in existing instance
  189. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"downloads.location.directory\\" \\"/tmp/pytest-of-palbrecht/pytest-9/test_downloading_via_pdfjs0/downloads\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  190. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  191. INFO     ipc:ipc.py:481 Opening in existing instance
  192. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":download-cancel --all"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  193. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  194. INFO     ipc:ipc.py:481 Opening in existing instance
  195. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":download-clear"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  196. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  197. INFO     ipc:ipc.py:481 Opening in existing instance
  198. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"downloads.remove_finished\\" \\"-1\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  199. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  200. INFO     ipc:ipc.py:481 Opening in existing instance
  201. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"downloads.location.prompt\\" \\"false\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  202. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  203. INFO     ipc:ipc.py:481 Opening in existing instance
  204. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"content.pdfjs\\" \\"true\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  205. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-oqu_rvh3/runtime/ipc-627c332d519a549412105c091908c80e
  206. INFO     ipc:ipc.py:481 Opening in existing instance
  207. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":open http://localhost:40603/data/misc/test.pdf"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  208.  
  209. tests/end2end/features/test_qutescheme_bdd.py F
  210.  
  211. _____________________________________________________________________________ test_pdfjs_is_used_for_pdf_files ______________________________________________________________________________
  212.  
  213. request = <FixtureRequest for <Function test_pdfjs_is_used_for_pdf_files>>
  214.  
  215.     @pytest.mark.usefixtures(*function_args)
  216.     def scenario_wrapper(request):
  217. >       _execute_scenario(feature, scenario, request)
  218.  
  219. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:165:
  220. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  221. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:136: in _execute_scenario
  222.     _execute_step_function(request, scenario, step, step_func)
  223. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:106: in _execute_step_function
  224.     return_value = step_func(**kwargs)
  225. tests/end2end/features/conftest.py:524: in javascript_message_logged
  226.     quteproc.wait_for_js(message)
  227. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  228.  
  229. self = <end2end.fixtures.quteprocess.QuteProc object at 0x7efc7c176940>, message = 'PDF * [*] (PDF.js: *)'
  230.  
  231.     def wait_for_js(self, message):
  232.         """Wait for the given javascript console message.
  233.  
  234.         Return:
  235.             The LogLine.
  236.         """
  237. >       line = self.wait_for(category='js',
  238.                              message='[*] {}'.format(message))
  239. E       end2end.fixtures.testprocess.WaitForTimeout: Timed out after 5000ms waiting for {'category': 'js', 'message': '[*] PDF * [*] (PDF.js: *)'}.
  240.  
  241. tests/end2end/fixtures/quteprocess.py:587: WaitForTimeout
  242. ------------------------------------------------------------------------------------ qutebrowser output -------------------------------------------------------------------------------------
  243. [347 lines suppressed, use -v to show]
  244. 15:20:02.830 DEBUG    downloads  webenginedownloads:_on_state_changed:64 State for <qutebrowser.browser.webengine.webenginedownloads.DownloadItem basename='tmpmy3o0ufa_test.pdf'> changed to DownloadInProgress
  245. 15:20:02.841 DEBUG    downloads  webenginedownloads:_on_state_changed:64 State for <qutebrowser.browser.webengine.webenginedownloads.DownloadItem basename='tmpmy3o0ufa_test.pdf'> changed to DownloadCompleted
  246. 15:20:02.841 DEBUG    downloads  webenginedownloads:_on_state_changed:72 Download tmpmy3o0ufa_test.pdf finished
  247. 15:20:02.841 DEBUG    downloads  downloads:_on_begin_remove_row:1078 _on_begin_remove_row with idx 0, webengine True
  248. 15:20:02.841 DEBUG    downloads  downloads:_remove_item:997 Removed download 1: tmpmy3o0ufa_test.pdf [100%|16.28kB]
  249. 15:20:02.841 DEBUG    webview    tabbedbrowser:tabopen:593 Creating new tab with URL PyQt5.QtCore.QUrl('qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'), background False, related True, idx None
  250. 15:20:02.844 DEBUG    webview    tabbedbrowser:_get_new_tab_idx:680 tabs.new_position next -> opening new tab at 2, next left: 1 / right: 3
  251. 15:20:02.844 DEBUG    webview    browsertab:_on_before_load_started:1041 Going to start loading: qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf
  252. 15:20:02.844 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 2 to 'qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'
  253. 15:20:02.845 DEBUG    misc       eventfilter:eventFilter:53 <qutebrowser.browser.webengine.webview.WebEngineView object at 0x7f230c028c10> got new child <PyQt5.QtWidgets.QWidget object at 0x7f230c0433a0>, installing filter
  254. 15:20:02.847 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtWidgets.QWidget object at 0x7f230c0288b0>
  255. 15:20:02.847 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: None
  256. 15:20:02.852 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtWidgets.QWidget object at 0x7f230c043310>
  257. 15:20:02.852 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtCore.QObject object at 0x7f230c043310>
  258. 15:20:02.852 DEBUG    modes      tabbedbrowser:_on_current_changed:832 Current tab changed, focusing <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=2 url=''>
  259. 15:20:02.852 DEBUG    modes      tabbedbrowser:_on_current_changed:839 Mode before tab change: normal (mode_on_change = normal)
  260. 15:20:02.852 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.hint (reason tab changed) as we're in mode KeyMode.normal
  261. 15:20:02.853 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.caret (reason tab changed) as we're in mode KeyMode.normal
  262. 15:20:02.853 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.insert (reason tab changed) as we're in mode KeyMode.normal
  263. 15:20:02.853 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.passthrough (reason tab changed) as we're in mode KeyMode.normal
  264. 15:20:02.853 DEBUG    modes      tabbedbrowser:_on_current_changed:850 Mode after tab change: normal (mode_on_change = normal)
  265. 15:20:02.866 DEBUG    webview    browsertab:_on_navigation_request:1065 navigation request: url qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data…, type Type.typed, is_main_frame True
  266. 15:20:02.866 DEBUG    webview    webenginetab:_store_match_data:151 Active search match: 0/0
  267. 15:20:02.866 DEBUG    webview    browsertab:_set_load_status:1007 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=2 url=''>: LoadStatus.loading
  268. 15:20:02.866 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_status_changed(<LoadStatus.loading: 6>) (tab 2)
  269. 15:20:02.867 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_started() (tab 2)
  270. 15:20:02.873 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf
  271. 15:20:02.873 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf, path: /web/viewer.html, host pdfjs
  272. 15:20:02.874 DEBUG    network    webenginequtescheme:requestStarted:118 Returning text/html data
  273. 15:20:02.877 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_url_changed(PyQt5.QtCore.QUrl('qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf')) (tab 2)
  274. 15:20:02.878 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 2 to 'qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'
  275. 15:20:02.886 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 2 to 'PDF.js viewer'
  276. 15:20:02.892 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.css
  277. 15:20:02.892 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.css, path: /web/viewer.css, host pdfjs
  278. 15:20:02.895 DEBUG    network    webenginequtescheme:requestStarted:118 Returning text/css data
  279. 15:20:02.895 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/build/pdf.js
  280. 15:20:02.895 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/build/pdf.js, path: /build/pdf.js, host pdfjs
  281. 15:20:02.895 DEBUG    network    webenginequtescheme:requestStarted:118 Returning application/javascript data
  282. 15:20:02.895 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.js
  283. 15:20:02.896 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.js, path: /web/viewer.js, host pdfjs
  284. 15:20:02.896 DEBUG    network    webenginequtescheme:requestStarted:118 Returning application/javascript data
  285. 15:20:02.903 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/build/pdf.js:2358] Uncaught SyntaxError: Unexpected token '='
  286. 15:20:02.909 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/web/viewer.js:1561] Uncaught SyntaxError: Unexpected token '='
  287. 15:20:02.911 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf:406] Uncaught TypeError: Cannot read property 'set' of undefined
  288. 15:20:02.914 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewThumbnail.svg
  289. 15:20:02.914 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewThumbnail.svg, path: /web/images/toolbarButton-viewThumbnail.svg, host pdfjs
  290. 15:20:02.914 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  291. 15:20:02.915 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewOutline.svg
  292. 15:20:02.915 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewOutline.svg, path: /web/images/toolbarButton-viewOutline.svg, host pdfjs
  293. 15:20:02.915 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  294. 15:20:02.918 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewAttachments.svg
  295. 15:20:02.918 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewAttachments.svg, path: /web/images/toolbarButton-viewAttachments.svg, host pdfjs
  296. 15:20:02.918 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  297. 15:20:02.919 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewLayers.svg
  298. 15:20:02.919 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewLayers.svg, path: /web/images/toolbarButton-viewLayers.svg, host pdfjs
  299. 15:20:02.919 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  300. 15:20:02.919 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-sidebarToggle.svg
  301. 15:20:02.919 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-sidebarToggle.svg, path: /web/images/toolbarButton-sidebarToggle.svg, host pdfjs
  302. 15:20:02.919 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  303. 15:20:02.920 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-search.svg
  304. 15:20:02.920 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-search.svg, path: /web/images/toolbarButton-search.svg, host pdfjs
  305. 15:20:02.920 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  306. 15:20:02.921 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-pageUp.svg
  307. 15:20:02.921 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-pageUp.svg, path: /web/images/toolbarButton-pageUp.svg, host pdfjs
  308. 15:20:02.921 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  309. 15:20:02.922 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-pageDown.svg
  310. 15:20:02.922 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-pageDown.svg, path: /web/images/toolbarButton-pageDown.svg, host pdfjs
  311. 15:20:02.922 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  312. 15:20:02.924 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-presentationMode.svg
  313. 15:20:02.924 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-presentationMode.svg, path: /web/images/toolbarButton-presentationMode.svg, host pdfjs
  314. 15:20:02.924 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  315. 15:20:02.925 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-openFile.svg
  316. 15:20:02.925 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-openFile.svg, path: /web/images/toolbarButton-openFile.svg, host pdfjs
  317. 15:20:02.925 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  318. 15:20:02.926 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-print.svg
  319. 15:20:02.926 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-print.svg, path: /web/images/toolbarButton-print.svg, host pdfjs
  320. 15:20:02.926 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  321. 15:20:02.927 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-download.svg
  322. 15:20:02.927 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-download.svg, path: /web/images/toolbarButton-download.svg, host pdfjs
  323. 15:20:02.928 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  324. 15:20:02.964 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-bookmark.svg
  325. 15:20:02.964 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-bookmark.svg, path: /web/images/toolbarButton-bookmark.svg, host pdfjs
  326. 15:20:02.964 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  327. 15:20:02.966 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg
  328. 15:20:02.966 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg, path: /web/images/toolbarButton-secondaryToolbarToggle.svg, host pdfjs
  329. 15:20:02.966 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  330. 15:20:02.967 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-zoomOut.svg
  331. 15:20:02.967 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-zoomOut.svg, path: /web/images/toolbarButton-zoomOut.svg, host pdfjs
  332. 15:20:02.968 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  333. 15:20:02.969 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-zoomIn.svg
  334. 15:20:02.969 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-zoomIn.svg, path: /web/images/toolbarButton-zoomIn.svg, host pdfjs
  335. 15:20:02.969 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  336. 15:20:02.970 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-menuArrow.svg
  337. 15:20:02.970 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-menuArrow.svg, path: /web/images/toolbarButton-menuArrow.svg, host pdfjs
  338. 15:20:02.970 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  339. 15:20:02.989 DEBUG    webview    browsertab:_set_load_status:1007 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=2 url='qute://pdfjs/web/viewer.html?filename=tmpmy3o0ufa_test.pdf&file=&source=http://localhost:40603/data…'>: LoadStatus.success
  340. 15:20:02.989 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_status_changed(<LoadStatus.success: 2>) (tab 2)
  341. 15:20:02.989 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_finished(True) (tab 2)
  342. 15:20:02.990 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.insert (reason load started) as we're in mode KeyMode.normal
  343. 15:20:02.990 DEBUG    modes      tabbedbrowser:_leave_modes_on_load:737 Ignoring leave_on_load request due to setting.
  344. --------------------------------------------------------------------------------------- server output ---------------------------------------------------------------------------------------
  345. {"verb": "GET", "path": "/data/misc/test.pdf", "status": 200}
  346. {"verb": "GET", "path": "/data/misc/test.pdf", "status": 200}
  347. --------------------------------------------------------------------------------------- BDD scenario ----------------------------------------------------------------------------------------
  348. Feature: Special qute:// pages
  349.   Scenario: pdfjs is used for pdf files (features/qutescheme.feature:175)
  350.     Given I open about:blank (0.93s)
  351.     Given pdfjs is available (0.00s)
  352.     When I set content.pdfjs to true (0.01s)
  353.     And I open data/misc/test.pdf without waiting (0.00s)
  354.     Then the javascript message "PDF * [*] (PDF.js: *)" should be logged (5.44s)
  355. ------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
  356. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  357. INFO     ipc:ipc.py:481 Opening in existing instance
  358. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":config-clear"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  359. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  360. INFO     ipc:ipc.py:481 Opening in existing instance
  361. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"messages.timeout\\" \\"0\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  362. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  363. INFO     ipc:ipc.py:481 Opening in existing instance
  364. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"auto_save.interval\\" \\"0\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  365. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  366. INFO     ipc:ipc.py:481 Opening in existing instance
  367. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"new_instance_open_target_window\\" \\"last-opened\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  368. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  369. INFO     ipc:ipc.py:481 Opening in existing instance
  370. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":open -t about:blank"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  371. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  372. INFO     ipc:ipc.py:481 Opening in existing instance
  373. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"content.pdfjs\\" \\"true\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  374. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  375. INFO     ipc:ipc.py:481 Opening in existing instance
  376. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":open http://localhost:40603/data/misc/test.pdf"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  377.  
  378. tests/end2end/features/test_qutescheme_bdd.py F
  379.  
  380. ____________________________________________________________________ test_downloading_a_pdf_via_pdfjs_button_issue_1214 _____________________________________________________________________
  381.  
  382. request = <FixtureRequest for <Function test_downloading_a_pdf_via_pdfjs_button_issue_1214>>
  383.  
  384.     @pytest.mark.usefixtures(*function_args)
  385.     def scenario_wrapper(request):
  386. >       _execute_scenario(feature, scenario, request)
  387.  
  388. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:165:
  389. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  390. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:136: in _execute_scenario
  391.     _execute_step_function(request, scenario, step, step_func)
  392. .tox/py38-pyqt/lib/python3.8/site-packages/pytest_bdd/scenario.py:106: in _execute_step_function
  393.     return_value = step_func(**kwargs)
  394. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  395.  
  396. quteproc = <end2end.fixtures.quteprocess.QuteProc object at 0x7efc7c176940>, is_regex = None, pattern = '[qute://pdfjs/*] PDF * (PDF.js: *)', do_skip = None
  397.  
  398.     @bdd.when(bdd.parsers.re(r'I wait for (?P<is_regex>regex )?"'
  399.                              r'(?P<pattern>[^"]+)" in the log(?P<do_skip> or skip '
  400.                              r'the test)?'))
  401.     def wait_in_log(quteproc, is_regex, pattern, do_skip):
  402.         """Wait for a given pattern in the qutebrowser log.
  403.  
  404.         If used like "When I wait for regex ... in the log" the argument is treated
  405.         as regex. Otherwise, it's treated as a pattern (* can be used as wildcard).
  406.         """
  407.         if is_regex:
  408.             pattern = re.compile(pattern)
  409.  
  410. >       line = quteproc.wait_for(message=pattern, do_skip=bool(do_skip))
  411. E       end2end.fixtures.testprocess.WaitForTimeout: Timed out after 5000ms waiting for {'message': '[qute://pdfjs/*] PDF * (PDF.js: *)'}.
  412.  
  413. tests/end2end/features/conftest.py:319: WaitForTimeout
  414. ------------------------------------------------------------------------------------ qutebrowser output -------------------------------------------------------------------------------------
  415. [222 lines suppressed, use -v to show]
  416. 15:20:08.403 DEBUG    downloads  webenginedownloads:_on_state_changed:64 State for <qutebrowser.browser.webengine.webenginedownloads.DownloadItem basename='tmplq91p4gu_test.pdf'> changed to DownloadInProgress
  417. 15:20:08.428 DEBUG    downloads  webenginedownloads:_on_state_changed:64 State for <qutebrowser.browser.webengine.webenginedownloads.DownloadItem basename='tmplq91p4gu_test.pdf'> changed to DownloadCompleted
  418. 15:20:08.428 DEBUG    downloads  webenginedownloads:_on_state_changed:72 Download tmplq91p4gu_test.pdf finished
  419. 15:20:08.428 DEBUG    downloads  downloads:_on_begin_remove_row:1078 _on_begin_remove_row with idx 0, webengine True
  420. 15:20:08.428 DEBUG    downloads  downloads:_remove_item:997 Removed download 1: tmplq91p4gu_test.pdf [100%|16.28kB]
  421. 15:20:08.428 DEBUG    webview    tabbedbrowser:tabopen:593 Creating new tab with URL PyQt5.QtCore.QUrl('qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'), background False, related True, idx None
  422. 15:20:08.431 DEBUG    webview    tabbedbrowser:_get_new_tab_idx:680 tabs.new_position next -> opening new tab at 4, next left: 3 / right: 5
  423. 15:20:08.432 DEBUG    webview    browsertab:_on_before_load_started:1041 Going to start loading: qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf
  424. 15:20:08.432 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 4 to 'qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'
  425. 15:20:08.432 DEBUG    misc       eventfilter:eventFilter:53 <qutebrowser.browser.webengine.webview.WebEngineView object at 0x7f22eac5c700> got new child <PyQt5.QtWidgets.QWidget object at 0x7f22eac42790>, installing filter
  426. 15:20:08.433 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtWidgets.QWidget object at 0x7f22eac5c280>
  427. 15:20:08.434 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: None
  428. 15:20:08.439 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtWidgets.QWidget object at 0x7f22eac42820>
  429. 15:20:08.439 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtCore.QObject object at 0x7f22eac42820>
  430. 15:20:08.440 DEBUG    modes      tabbedbrowser:_on_current_changed:832 Current tab changed, focusing <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=4 url=''>
  431. 15:20:08.440 DEBUG    modes      tabbedbrowser:_on_current_changed:839 Mode before tab change: normal (mode_on_change = normal)
  432. 15:20:08.440 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.hint (reason tab changed) as we're in mode KeyMode.normal
  433. 15:20:08.440 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.caret (reason tab changed) as we're in mode KeyMode.normal
  434. 15:20:08.440 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.insert (reason tab changed) as we're in mode KeyMode.normal
  435. 15:20:08.440 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.passthrough (reason tab changed) as we're in mode KeyMode.normal
  436. 15:20:08.440 DEBUG    modes      tabbedbrowser:_on_current_changed:850 Mode after tab change: normal (mode_on_change = normal)
  437. 15:20:08.454 DEBUG    webview    browsertab:_on_navigation_request:1065 navigation request: url qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data…, type Type.typed, is_main_frame True
  438. 15:20:08.454 DEBUG    webview    webenginetab:_store_match_data:151 Active search match: 0/0
  439. 15:20:08.454 DEBUG    webview    browsertab:_set_load_status:1007 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=4 url=''>: LoadStatus.loading
  440. 15:20:08.455 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_status_changed(<LoadStatus.loading: 6>) (tab 4)
  441. 15:20:08.455 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_started() (tab 4)
  442. 15:20:08.460 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf
  443. 15:20:08.461 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf, path: /web/viewer.html, host pdfjs
  444. 15:20:08.462 DEBUG    network    webenginequtescheme:requestStarted:118 Returning text/html data
  445. 15:20:08.464 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_url_changed(PyQt5.QtCore.QUrl('qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf')) (tab 4)
  446. 15:20:08.465 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 4 to 'qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf'
  447. 15:20:08.474 DEBUG    webview    tabbedbrowser:_on_title_changed:757 Changing title for idx 4 to 'PDF.js viewer'
  448. 15:20:08.480 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.css
  449. 15:20:08.480 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.css, path: /web/viewer.css, host pdfjs
  450. 15:20:08.480 DEBUG    network    webenginequtescheme:requestStarted:118 Returning text/css data
  451. 15:20:08.481 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/build/pdf.js
  452. 15:20:08.481 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/build/pdf.js, path: /build/pdf.js, host pdfjs
  453. 15:20:08.481 DEBUG    network    webenginequtescheme:requestStarted:118 Returning application/javascript data
  454. 15:20:08.482 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/viewer.js
  455. 15:20:08.482 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/viewer.js, path: /web/viewer.js, host pdfjs
  456. 15:20:08.482 DEBUG    network    webenginequtescheme:requestStarted:118 Returning application/javascript data
  457. 15:20:08.491 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/build/pdf.js:2358] Uncaught SyntaxError: Unexpected token '='
  458. 15:20:08.495 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/web/viewer.js:1561] Uncaught SyntaxError: Unexpected token '='
  459. 15:20:08.497 DEBUG    js         shared:javascript_log_message:156 [qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data/misc/test.pdf:406] Uncaught TypeError: Cannot read property 'set' of undefined
  460. 15:20:08.501 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewThumbnail.svg
  461. 15:20:08.501 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewThumbnail.svg, path: /web/images/toolbarButton-viewThumbnail.svg, host pdfjs
  462. 15:20:08.501 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  463. 15:20:08.503 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewOutline.svg
  464. 15:20:08.503 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewOutline.svg, path: /web/images/toolbarButton-viewOutline.svg, host pdfjs
  465. 15:20:08.503 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  466. 15:20:08.504 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewAttachments.svg
  467. 15:20:08.504 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewAttachments.svg, path: /web/images/toolbarButton-viewAttachments.svg, host pdfjs
  468. 15:20:08.504 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  469. 15:20:08.505 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-viewLayers.svg
  470. 15:20:08.505 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-viewLayers.svg, path: /web/images/toolbarButton-viewLayers.svg, host pdfjs
  471. 15:20:08.505 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  472. 15:20:08.506 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-sidebarToggle.svg
  473. 15:20:08.506 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-sidebarToggle.svg, path: /web/images/toolbarButton-sidebarToggle.svg, host pdfjs
  474. 15:20:08.506 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  475. 15:20:08.507 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-search.svg
  476. 15:20:08.507 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-search.svg, path: /web/images/toolbarButton-search.svg, host pdfjs
  477. 15:20:08.507 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  478. 15:20:08.508 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-pageUp.svg
  479. 15:20:08.508 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-pageUp.svg, path: /web/images/toolbarButton-pageUp.svg, host pdfjs
  480. 15:20:08.508 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  481. 15:20:08.509 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-pageDown.svg
  482. 15:20:08.509 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-pageDown.svg, path: /web/images/toolbarButton-pageDown.svg, host pdfjs
  483. 15:20:08.510 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  484. 15:20:08.511 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-presentationMode.svg
  485. 15:20:08.511 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-presentationMode.svg, path: /web/images/toolbarButton-presentationMode.svg, host pdfjs
  486. 15:20:08.511 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  487. 15:20:08.513 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-openFile.svg
  488. 15:20:08.513 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-openFile.svg, path: /web/images/toolbarButton-openFile.svg, host pdfjs
  489. 15:20:08.513 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  490. 15:20:08.518 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-print.svg
  491. 15:20:08.519 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-print.svg, path: /web/images/toolbarButton-print.svg, host pdfjs
  492. 15:20:08.519 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  493. 15:20:08.519 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-download.svg
  494. 15:20:08.520 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-download.svg, path: /web/images/toolbarButton-download.svg, host pdfjs
  495. 15:20:08.520 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  496. 15:20:08.521 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-bookmark.svg
  497. 15:20:08.521 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-bookmark.svg, path: /web/images/toolbarButton-bookmark.svg, host pdfjs
  498. 15:20:08.521 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  499. 15:20:08.523 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg
  500. 15:20:08.523 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg, path: /web/images/toolbarButton-secondaryToolbarToggle.svg, host pdfjs
  501. 15:20:08.523 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  502. 15:20:08.524 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-zoomOut.svg
  503. 15:20:08.524 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-zoomOut.svg, path: /web/images/toolbarButton-zoomOut.svg, host pdfjs
  504. 15:20:08.524 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  505. 15:20:08.526 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-zoomIn.svg
  506. 15:20:08.526 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-zoomIn.svg, path: /web/images/toolbarButton-zoomIn.svg, host pdfjs
  507. 15:20:08.526 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  508. 15:20:08.527 DEBUG    network    webenginequtescheme:requestStarted:95 Got request for qute://pdfjs/web/images/toolbarButton-menuArrow.svg
  509. 15:20:08.527 DEBUG    misc       qutescheme:data_for_url:141 url: qute://pdfjs/web/images/toolbarButton-menuArrow.svg, path: /web/images/toolbarButton-menuArrow.svg, host pdfjs
  510. 15:20:08.527 DEBUG    network    webenginequtescheme:requestStarted:118 Returning image/svg+xml data
  511. 15:20:08.546 DEBUG    webview    browsertab:_set_load_status:1007 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=4 url='qute://pdfjs/web/viewer.html?filename=tmplq91p4gu_test.pdf&file=&source=http://localhost:40603/data…'>: LoadStatus.success
  512. 15:20:08.546 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_status_changed(<LoadStatus.success: 2>) (tab 4)
  513. 15:20:08.547 DEBUG    signals    signalfilter:_filter_signals:87 emitting: cur_load_finished(True) (tab 4)
  514. 15:20:08.547 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.insert (reason load started) as we're in mode KeyMode.normal
  515. 15:20:08.547 DEBUG    modes      tabbedbrowser:_leave_modes_on_load:737 Ignoring leave_on_load request due to setting.
  516. --------------------------------------------------------------------------------------- server output ---------------------------------------------------------------------------------------
  517. {"verb": "GET", "path": "/data/misc/test.pdf", "status": 304}
  518. {"verb": "GET", "path": "/data/misc/test.pdf", "status": 200}
  519. --------------------------------------------------------------------------------------- BDD scenario ----------------------------------------------------------------------------------------
  520. Feature: Special qute:// pages
  521.   Scenario: Downloading a pdf via pdf.js button (issue 1214) (features/qutescheme.feature:188)
  522.     Given I open about:blank (0.05s)
  523.     Given pdfjs is available (0.00s)
  524.     When I set content.pdfjs to true (0.01s)
  525.     And I set downloads.location.prompt to true (0.01s)
  526.     And I open data/misc/test.pdf without waiting (0.01s)
  527.     And I wait for "[qute://pdfjs/*] PDF * (PDF.js: *)" in the log (4.92s)
  528.     And I run :jseval document.getElementById("download").click() (0.00s)
  529.     And I wait for "Asking question <qutebrowser.utils.usertypes.Question default=* mode=<PromptMode.download: 5> option=None text=* title='Save file to:'>, *" in the log (0.00s)
  530.     And I run :mode-leave (0.00s)
  531.     Then no crash should happen (0.00s)
  532. ------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
  533. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  534. INFO     ipc:ipc.py:481 Opening in existing instance
  535. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":config-clear"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  536. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  537. INFO     ipc:ipc.py:481 Opening in existing instance
  538. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"messages.timeout\\" \\"0\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  539. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  540. INFO     ipc:ipc.py:481 Opening in existing instance
  541. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"auto_save.interval\\" \\"0\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  542. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  543. INFO     ipc:ipc.py:481 Opening in existing instance
  544. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"new_instance_open_target_window\\" \\"last-opened\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  545. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  546. INFO     ipc:ipc.py:481 Opening in existing instance
  547. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":open -t about:blank"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  548. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  549. INFO     ipc:ipc.py:481 Opening in existing instance
  550. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"content.pdfjs\\" \\"true\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  551. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  552. INFO     ipc:ipc.py:481 Opening in existing instance
  553. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":set -t \\"downloads.location.prompt\\" \\"true\\""], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  554. DEBUG    ipc:ipc.py:476 Connecting to /tmp/qutebrowser-basedir-_4s19iat/runtime/ipc-57f59c19a0ec48c8d4d7af41de036b1b
  555. INFO     ipc:ipc.py:481 Opening in existing instance
  556. DEBUG    ipc:ipc.py:493 Writing: b'{"args": [":open http://localhost:40603/data/misc/test.pdf"], "target_arg": "", "version": "2.4.0", "protocol_version": 1, "cwd": "/home/palbrecht/dev/qutebrowser"}\n'
  557.  
  558. tests/unit/browser/webengine/test_webenginedownloads.py F
  559.  
  560. _______________________________________________________________________ TestDataUrlWorkaround.test_workaround[False] ________________________________________________________________________
  561.  
  562. self = <test_webenginedownloads.TestDataUrlWorkaround object at 0x7efc7c0792e0>, webengine_tab = <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=0 url=''>
  563. message_mock = <helpers.messagemock.MessageMock object at 0x7efc5c26dc10>, qtbot = <pytestqt.qtbot.QtBot object at 0x7efc9234aeb0>
  564. pdf_url = PyQt5.QtCore.QUrl('data:application/pdf;base64,JVBERi0xLjAKMSAwIG9iajw8L1BhZ2VzIDIgMCBSPj5lbmRvYmoKMiAwIG9iajw8L0tpZHNbMyAwIFJdL0NvdW50IDE+PmVuZG9iagozIDAgb2JqPDwvTWVkaWFCb3hbMCAwIDMgM10+PmVuZG9iagp0cmFpbGVyPDwvUm9vdCAxIDAgUj4+')
  565. download_manager = <qutebrowser.browser.webengine.webenginedownloads.DownloadManager downloads=0>, expected_names = _ExpectedNames(before='pdf', after='download.pdf')
  566.  
  567.     def test_workaround(self, webengine_tab, message_mock, qtbot,
  568.                         pdf_url, download_manager, expected_names):
  569.         """Verify our workaround works properly."""
  570.         with qtbot.wait_signal(message_mock.got_question):
  571.             webengine_tab.load_url(pdf_url)
  572.  
  573.         question = message_mock.get_question()
  574. >       assert question.default == expected_names.after
  575. E       AssertionError: assert equals failed
  576. E         'pdf'           'download.pdf'
  577.  
  578. tests/unit/browser/webengine/test_webenginedownloads.py:127: AssertionError
  579. ------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
  580. DEBUG    greasemonkey:greasemonkey.py:307 Reading scripts from: /tmp/pytest-of-palbrecht/pytest-9/test_workaround_False_0/data/greasemonkey
  581. DEBUG    greasemonkey:greasemonkey.py:307 Reading scripts from: /tmp/pytest-of-palbrecht/pytest-9/test_workaround_False_0/config/greasemonkey
  582. DEBUG    config:config.py:351 Config option changed: content.javascript.log = {'info': 'info', 'error': 'error', 'unknown': 'error', 'warning': 'error'}
  583. DEBUG    config:config.py:351 Config option changed: downloads.location.suggestion = filename
  584. ------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
  585. DEBUG    webview:browsertab.py:1041 Going to start loading: data:application/pdf;base64,JVBERi0xLjAKMSAwIG9iajw8L1BhZ2VzIDIgMCBSPj5lbmRvYmoKMiAwIG9iajw8L0tpZHNbMyAwIFJdL0NvdW50IDE+PmVuZG9iagozIDAgb2JqPDwvTWVkaWFCb3hbMCAwIDMgM10+PmVuZG9iagp0cmFpbGVyPDwvUm9vdCAxIDAgUj4+
  586. DEBUG    misc:eventfilter.py:53 <qutebrowser.browser.webengine.webview.WebEngineView object at 0x7efc5c26d310> got new child <PyQt5.QtWidgets.QWidget object at 0x7efc6458c040>, installing filter
  587. DEBUG    webview:browsertab.py:1065 navigation request: url data:application/pdf;base64,JVBERi0xLjAKMSAwIG9iajw8L1BhZ2VzIDIgMCBSPj5lbmRvYmoKMiAwIG9iajw8L0tpZHN…, type Type.typed, is_main_frame True
  588. DEBUG    webview:webenginetab.py:151 Active search match: 0/0
  589. DEBUG    webview:browsertab.py:1007 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=0 url=''>: LoadStatus.loading
  590. DEBUG    messagemock:messagemock.py:75 <qutebrowser.utils.usertypes.Question default='pdf' mode=<PromptMode.download: 5> option=None text='Please enter a location for <b>data:application/pdf;base64,JVBERi0xLjAKMSAwIG9iajw8L1BhZ2VzIDIgMCBSPj5lbmRvYmoKMiAwIG9iajw8L0tpZHNbMyAwIFJdL0NvdW50IDE+PmVuZG9iagozIDAgb2JqPDwvTWVkaWFCb3hbMCAwIDMgM10+PmVuZG9iagp0cmFpbGVyPDwvUm9vdCAxIDAgUj4+</b>' title='Save file to:'>
  591. DEBUG    downloads:webenginedownloads.py:64 State for <qutebrowser.browser.webengine.webenginedownloads.DownloadItem basename='pdf'> changed to DownloadCancelled
  592. DEBUG    downloads:downloads.py:997 Removed download 1: pdf [100%|?.??B]
  593.  
  594. tests/unit/browser/webengine/test_webenginedownloads.py F
  595.  
  596. ____________________________________________________________________ TestDataUrlWorkaround.test_workaround_needed[False] ____________________________________________________________________
  597. CALL ERROR: Exceptions caught in Qt event loop:
  598. ________________________________________________________________________________
  599. Traceback (most recent call last):
  600.   File "/home/palbrecht/dev/qutebrowser/.tox/py38-pyqt/lib/python3.8/site-packages/pytestqt/wait_signal.py", line 213, in _quit_loop_by_signal
  601.     if not self.check_params_callback(*args):
  602.   File "/home/palbrecht/dev/qutebrowser/tests/unit/browser/webengine/test_webenginedownloads.py", line 157, in check_item
  603.     assert os.path.basename(item.path()) == expected_names.before
  604. AssertionError: assert equals failed
  605.   [m[1;31m'pdf (1)'[m  [1;32m'pdf'[m
  606. ________________________________________________________________________________
  607. ------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
  608. DEBUG    greasemonkey:greasemonkey.py:307 Reading scripts from: /tmp/pytest-of-palbrecht/pytest-9/test_workaround_needed_False_0/data/greasemonkey
  609. DEBUG    greasemonkey:greasemonkey.py:307 Reading scripts from: /tmp/pytest-of-palbrecht/pytest-9/test_workaround_needed_False_0/config/greasemonkey
  610. DEBUG    config:config.py:351 Config option changed: content.javascript.log = {'info': 'info', 'error': 'error', 'unknown': 'error', 'warning': 'error'}
  611. ----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
  612. Exceptions caught in Qt event loop:
  613. ________________________________________________________________________________
  614. Traceback (most recent call last):
  615.   File "/home/palbrecht/dev/qutebrowser/.tox/py38-pyqt/lib/python3.8/site-packages/pytestqt/wait_signal.py", line 213, in _quit_loop_by_signal
  616.     if not self.check_params_callback(*args):
  617.   File "/home/palbrecht/dev/qutebrowser/tests/unit/browser/webengine/test_webenginedownloads.py", line 157, in check_item
  618.     assert os.path.basename(item.path()) == expected_names.before
  619. AssertionError: assert equals failed
  620.   'pdf (1)'  'pdf'
  621. ________________________________________________________________________________
  622. ------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
  623. DEBUG    destroy:objreg.py:126 schedule removal: 0
  624. DEBUG    destroy:objreg.py:126 schedule removal: tab
  625. DEBUG    destroy:objreg.py:131 removed: 0
  626. DEBUG    destroy:objreg.py:131 removed: tab
  627.                                                                                                                                                                                       [100%]
  628. ================================================================================== short test summary info ==================================================================================
  629. FAILED tests/end2end/features/test_downloads_bdd.py::test_downloading_via_pdfjs - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 5000ms waiting for {'category': 'js', 'mess...
  630. FAILED tests/end2end/features/test_qutescheme_bdd.py::test_pdfjs_is_used_for_pdf_files - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 5000ms waiting for {'category': 'js'...
  631. FAILED tests/end2end/features/test_qutescheme_bdd.py::test_downloading_a_pdf_via_pdfjs_button_issue_1214 - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 5000ms waiting for...
  632. FAILED tests/unit/browser/webengine/test_webenginedownloads.py::TestDataUrlWorkaround::test_workaround[False] - AssertionError: assert equals failed
  633. FAILED tests/unit/browser/webengine/test_webenginedownloads.py::TestDataUrlWorkaround::test_workaround_needed[False]
  634. ============================================================================= 5 failed, 4 deselected in 24.30s ==============================================================================
  635. ERROR: InvocationError for command /home/palbrecht/dev/qutebrowser/.tox/py38-pyqt/bin/python -bb -m pytest --color=auto --lf (exited with code 1)
  636. __________________________________________________________________________________________ summary __________________________________________________________________________________________
  637. ERROR:   py38-pyqt: commands failed
  638.