Add simple tests for QtWebEngine renderer crash/kill

This commit is contained in:
Florian Bruhin 2017-02-08 09:41:55 +01:00
parent 87d1a2c7a3
commit 208ee04bdc
3 changed files with 15 additions and 1 deletions

View File

@ -23,6 +23,7 @@ markers =
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
this: Used to mark tests during development this: Used to mark tests during development
no_invalid_lines: Don't fail on unparseable lines in end2end tests
qt_log_level_fail = WARNING qt_log_level_fail = WARNING
qt_log_ignore = qt_log_ignore =
^SpellCheck: .* ^SpellCheck: .*

View File

@ -641,3 +641,15 @@ Feature: Various utility commands.
Scenario: Trying to enter command mode with :enter-mode Scenario: Trying to enter command mode with :enter-mode
When I run :enter-mode command When I run :enter-mode command
Then the error "Mode command can't be entered manually!" should be shown Then the error "Mode command can't be entered manually!" should be shown
## Renderer crashes
@qtwebkit_skip @no_invalid_lines
Scenario: Renderer crash
When I run :open -t chrome://crash
Then the error "Renderer process crashed" should be shown
@qtwebkit_skip @no_invalid_lines
Scenario: Renderer kill
When I run :open -t chrome://kill
Then the error "Renderer process was killed" should be shown

View File

@ -244,7 +244,8 @@ class QuteProc(testprocess.Process):
if not line.strip(): if not line.strip():
return None return None
elif (is_ignored_qt_message(line) or elif (is_ignored_qt_message(line) or
is_ignored_lowlevel_message(line)): is_ignored_lowlevel_message(line) or
self.request.node.get_marker('no_invalid_lines')):
return None return None
else: else:
raise raise