Add simple tests for QtWebEngine renderer crash/kill
This commit is contained in:
parent
87d1a2c7a3
commit
208ee04bdc
@ -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: .*
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user