quteprocess: Only wait for first about:blank load

We accidentally marked all about:blank lines as waited for...
This commit is contained in:
Florian Bruhin 2016-09-06 16:38:00 +02:00
parent 8b3517af7b
commit ce1b2e6f15

View File

@ -217,7 +217,8 @@ class QuteProc(testprocess.Process):
elif (log_line.category == 'webview' and elif (log_line.category == 'webview' and
testutils.pattern_match(pattern=start_okay_message_load, testutils.pattern_match(pattern=start_okay_message_load,
value=log_line.message)): value=log_line.message)):
log_line.waited_for = True if not self._load_ready:
log_line.waited_for = True
self._is_ready('load') self._is_ready('load')
elif (log_line.category == 'misc' and elif (log_line.category == 'misc' and
testutils.pattern_match(pattern=start_okay_message_focus, testutils.pattern_match(pattern=start_okay_message_focus,