parent
135f99c467
commit
c7970eb2ee
@ -20,6 +20,7 @@ markers =
|
|||||||
qtwebengine_flaky: Tests which are flaky (and currently skipped) with QtWebEngine
|
qtwebengine_flaky: Tests which are flaky (and currently skipped) with QtWebEngine
|
||||||
qtwebengine_osx_xfail: Tests which fail on OS X with QtWebEngine
|
qtwebengine_osx_xfail: Tests which fail on OS X with QtWebEngine
|
||||||
js_prompt: Tests needing to display a javascript prompt
|
js_prompt: Tests needing to display a javascript prompt
|
||||||
|
issue2183: https://github.com/The-Compiler/qutebrowser/issues/2183
|
||||||
this: Used to mark tests during development
|
this: Used to mark tests during development
|
||||||
qt_log_level_fail = WARNING
|
qt_log_level_fail = WARNING
|
||||||
qt_log_ignore =
|
qt_log_ignore =
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ $DOCKER ]]; then
|
if [[ $DOCKER ]]; then
|
||||||
docker run --privileged -v $PWD:/outside -e QUTE_BDD_WEBENGINE=$QUTE_BDD_WEBENGINE qutebrowser/travis:$DOCKER
|
docker run --privileged -v $PWD:/outside -e QUTE_BDD_WEBENGINE=$QUTE_BDD_WEBENGINE -e DOCKER=$DOCKER qutebrowser/travis:$DOCKER
|
||||||
else
|
else
|
||||||
args=()
|
args=()
|
||||||
[[ $TESTENV == docs ]] && args=('--no-authors')
|
[[ $TESTENV == docs ]] && args=('--no-authors')
|
||||||
|
@ -129,6 +129,12 @@ def pytest_collection_modifyitems(config, items):
|
|||||||
item.add_marker(pytest.mark.skipif(
|
item.add_marker(pytest.mark.skipif(
|
||||||
PYQT_VERSION <= js_prompt_pyqt_version,
|
PYQT_VERSION <= js_prompt_pyqt_version,
|
||||||
reason='JS prompts are not supported with this PyQt version'))
|
reason='JS prompts are not supported with this PyQt version'))
|
||||||
|
if item.get_marker('issue2183'):
|
||||||
|
item.add_marker(pytest.mark.xfail(
|
||||||
|
bool(os.environ.get('QUTE_BDD_WEBENGINE', None) and
|
||||||
|
os.environ.get('DOCKER', None)),
|
||||||
|
reason='https://github.com/The-Compiler/qutebrowser/issues/'
|
||||||
|
'2183'))
|
||||||
|
|
||||||
if deselected:
|
if deselected:
|
||||||
deselected_items.append(item)
|
deselected_items.append(item)
|
||||||
|
@ -94,6 +94,7 @@ Feature: Opening external editors
|
|||||||
And I run :click-element id qute-button
|
And I run :click-element id qute-button
|
||||||
Then the javascript message "text: foobar" should be logged
|
Then the javascript message "text: foobar" should be logged
|
||||||
|
|
||||||
|
@issue2183
|
||||||
Scenario: Spawning an editor with existing text
|
Scenario: Spawning an editor with existing text
|
||||||
When I set up a fake editor replacing "foo" by "bar"
|
When I set up a fake editor replacing "foo" by "bar"
|
||||||
And I open data/editor.html
|
And I open data/editor.html
|
||||||
|
@ -247,6 +247,7 @@ Feature: Yanking and pasting.
|
|||||||
|
|
||||||
#### :insert-text
|
#### :insert-text
|
||||||
|
|
||||||
|
@issue2183
|
||||||
Scenario: Inserting text into an empty text field
|
Scenario: Inserting text into an empty text field
|
||||||
When I set general -> log-javascript-console to info
|
When I set general -> log-javascript-console to info
|
||||||
And I open data/paste_primary.html
|
And I open data/paste_primary.html
|
||||||
@ -256,6 +257,7 @@ Feature: Yanking and pasting.
|
|||||||
# Compare
|
# Compare
|
||||||
Then the javascript message "textarea contents: Hello world" should be logged
|
Then the javascript message "textarea contents: Hello world" should be logged
|
||||||
|
|
||||||
|
@issue2183
|
||||||
Scenario: Inserting text into an empty text field with javascript disabled
|
Scenario: Inserting text into an empty text field with javascript disabled
|
||||||
When I set general -> log-javascript-console to info
|
When I set general -> log-javascript-console to info
|
||||||
And I set content -> allow-javascript to false
|
And I set content -> allow-javascript to false
|
||||||
@ -270,6 +272,7 @@ Feature: Yanking and pasting.
|
|||||||
# Compare
|
# Compare
|
||||||
Then the javascript message "textarea contents: Hello world" should be logged
|
Then the javascript message "textarea contents: Hello world" should be logged
|
||||||
|
|
||||||
|
@issue2183
|
||||||
Scenario: Inserting text into a text field at specific position
|
Scenario: Inserting text into a text field at specific position
|
||||||
When I set general -> log-javascript-console to info
|
When I set general -> log-javascript-console to info
|
||||||
And I open data/paste_primary.html
|
And I open data/paste_primary.html
|
||||||
@ -284,7 +287,7 @@ Feature: Yanking and pasting.
|
|||||||
# Compare
|
# Compare
|
||||||
Then the javascript message "textarea contents: onHello worlde two three four" should be logged
|
Then the javascript message "textarea contents: onHello worlde two three four" should be logged
|
||||||
|
|
||||||
@qtwebengine_osx_xfail
|
@qtwebengine_osx_xfail @issue2183
|
||||||
Scenario: Inserting text into a text field with undo
|
Scenario: Inserting text into a text field with undo
|
||||||
When I set general -> log-javascript-console to info
|
When I set general -> log-javascript-console to info
|
||||||
And I open data/paste_primary.html
|
And I open data/paste_primary.html
|
||||||
|
@ -86,6 +86,8 @@ Feature: Zooming in and out
|
|||||||
Then the message "Zoom level: 120%" should be shown
|
Then the message "Zoom level: 120%" should be shown
|
||||||
And the zoom should be 120%
|
And the zoom should be 120%
|
||||||
|
|
||||||
|
# https://github.com/The-Compiler/qutebrowser/issues/2183
|
||||||
|
@qtwebengine_flaky
|
||||||
Scenario: Setting a default zoom
|
Scenario: Setting a default zoom
|
||||||
When I set ui -> default-zoom to 200%
|
When I set ui -> default-zoom to 200%
|
||||||
And I open data/hello.txt in a new tab
|
And I open data/hello.txt in a new tab
|
||||||
|
2
tox.ini
2
tox.ini
@ -13,7 +13,7 @@ skipsdist = true
|
|||||||
setenv =
|
setenv =
|
||||||
QT_QPA_PLATFORM_PLUGIN_PATH={envdir}/Lib/site-packages/PyQt5/plugins/platforms
|
QT_QPA_PLATFORM_PLUGIN_PATH={envdir}/Lib/site-packages/PyQt5/plugins/platforms
|
||||||
PYTEST_QT_API=pyqt5
|
PYTEST_QT_API=pyqt5
|
||||||
passenv = PYTHON DISPLAY XAUTHORITY HOME USERNAME USER CI TRAVIS XDG_* QUTE_*
|
passenv = PYTHON DISPLAY XAUTHORITY HOME USERNAME USER CI TRAVIS XDG_* QUTE_* DOCKER
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/misc/requirements/requirements-tests.txt
|
-r{toxinidir}/misc/requirements/requirements-tests.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user