tests: Handle trailing / in wait_for_load_finished.

We actually already added that in 16ec035418, but
in 9a02dc174d we accidentally dropped it again.
This commit is contained in:
Florian Bruhin 2016-02-19 06:42:23 +01:00
parent 6a077f5d5a
commit b201b65669

View File

@ -380,7 +380,7 @@ class QuteProc(testprocess.Process):
url = utils.elide(QUrl(url).toDisplayString(QUrl.EncodeUnicode), 100)
pattern = re.compile(
r"(load status for <qutebrowser\.browser\.webview\.WebView "
r"tab_id=\d+ url='{url}'>: LoadStatus\.{load_status}|fetch: "
r"tab_id=\d+ url='{url}/?'>: LoadStatus\.{load_status}|fetch: "
r"PyQt5\.QtCore\.QUrl\('{url}'\) -> .*)".format(
load_status=re.escape(load_status), url=re.escape(url)))
self.wait_for(message=pattern, timeout=timeout)