tests: Allow to mark JS errors as expected

This commit is contained in:
Florian Bruhin 2016-09-12 15:57:02 +02:00
parent b645a88ade
commit fa78cc9f69

View File

@ -300,9 +300,11 @@ class QuteProc(testprocess.Process):
Return: Return:
The LogLine. The LogLine.
""" """
return self.wait_for(category='js', line = self.wait_for(category='js',
function='javaScriptConsoleMessage', function='javaScriptConsoleMessage',
message='[*] {}'.format(message)) message='[*] {}'.format(message))
line.expected = True
return line
def wait_scroll_pos_changed(self, x=None, y=None): def wait_scroll_pos_changed(self, x=None, y=None):
"""Wait until a "Scroll position changed" message was found. """Wait until a "Scroll position changed" message was found.