This commit is contained in:
avk 2016-02-22 12:28:41 +01:00
commit 7cc43d3954
5 changed files with 6 additions and 2 deletions

View File

@ -147,8 +147,8 @@ Contributors, sorted by the number of commits in descending order:
* Bruno Oliveira * Bruno Oliveira
* Alexander Cogneau * Alexander Cogneau
* Martin Tournoij * Martin Tournoij
* Raphael Pierzina
* Felix Van der Jeugt * Felix Van der Jeugt
* Raphael Pierzina
* Joel Torstensson * Joel Torstensson
* Claude * Claude
* Patric Schmitz * Patric Schmitz

View File

@ -16,6 +16,7 @@ markers =
pyqt531_or_newer: Needs PyQt 5.3.1 or newer. pyqt531_or_newer: Needs PyQt 5.3.1 or newer.
xfail_norun: xfail the test with out running it xfail_norun: xfail the test with out running it
flaky: Tests which are flaky and should be rerun flaky: Tests which are flaky and should be rerun
ci: Tests which should only run on CI.
qt_log_level_fail = WARNING qt_log_level_fail = WARNING
qt_log_ignore = qt_log_ignore =
^SpellCheck: .* ^SpellCheck: .*

View File

@ -57,6 +57,7 @@ def _apply_platform_markers(item):
('skip', True, "Always skipped."), ('skip', True, "Always skipped."),
('pyqt531_or_newer', PYQT_VERSION < 0x050301, ('pyqt531_or_newer', PYQT_VERSION < 0x050301,
"Needs PyQt 5.3.1 or newer"), "Needs PyQt 5.3.1 or newer"),
('ci', 'CI' not in os.environ, "Only runs on CI."),
] ]
for searched_marker, condition, default_reason in markers: for searched_marker, condition, default_reason in markers:

View File

@ -122,12 +122,14 @@ Feature: Prompts
And I click the button And I click the button
Then the javascript message "geolocation permission denied" should be logged Then the javascript message "geolocation permission denied" should be logged
@ci
Scenario: Always accepting geolocation Scenario: Always accepting geolocation
When I set content -> geolocation to true When I set content -> geolocation to true
And I open data/prompt/geolocation.html in a new tab And I open data/prompt/geolocation.html in a new tab
And I click the button And I click the button
Then the javascript message "geolocation permission denied" should not be logged Then the javascript message "geolocation permission denied" should not be logged
@ci
Scenario: geolocation with ask -> true Scenario: geolocation with ask -> true
When I set content -> geolocation to ask When I set content -> geolocation to ask
And I open data/prompt/geolocation.html in a new tab And I open data/prompt/geolocation.html in a new tab

View File

@ -46,7 +46,7 @@ def test_elided_text(qtbot, elidemode, check):
""" """
label = TextBase(elidemode=elidemode) label = TextBase(elidemode=elidemode)
qtbot.add_widget(label) qtbot.add_widget(label)
long_string = 'Hello world! ' * 20 long_string = 'Hello world! ' * 100
label.setText(long_string) label.setText(long_string)
label.resize(100, 50) label.resize(100, 50)
label.show() label.show()