Make quteproc.wait_for_load_finished_url public
This commit is contained in:
parent
e7a6907bc2
commit
867b4a8640
@ -383,7 +383,7 @@ class QuteProc(testprocess.Process):
|
|||||||
self.send_cmd(':open ' + url)
|
self.send_cmd(':open ' + url)
|
||||||
|
|
||||||
if wait:
|
if wait:
|
||||||
self._wait_for_load_finished_url(url)
|
self.wait_for_load_finished_url(url)
|
||||||
|
|
||||||
def mark_expected(self, category=None, loglevel=None, message=None):
|
def mark_expected(self, category=None, loglevel=None, message=None):
|
||||||
"""Mark a given logging message as expected."""
|
"""Mark a given logging message as expected."""
|
||||||
@ -391,8 +391,8 @@ class QuteProc(testprocess.Process):
|
|||||||
message=message)
|
message=message)
|
||||||
line.expected = True
|
line.expected = True
|
||||||
|
|
||||||
def _wait_for_load_finished_url(self, url, *, timeout=None,
|
def wait_for_load_finished_url(self, url, *, timeout=None,
|
||||||
load_status='success'):
|
load_status='success'):
|
||||||
"""Wait until a URL has finished loading."""
|
"""Wait until a URL has finished loading."""
|
||||||
__tracebackhide__ = True
|
__tracebackhide__ = True
|
||||||
|
|
||||||
@ -422,8 +422,8 @@ class QuteProc(testprocess.Process):
|
|||||||
"""Wait until a path has finished loading."""
|
"""Wait until a path has finished loading."""
|
||||||
__tracebackhide__ = True
|
__tracebackhide__ = True
|
||||||
url = self.path_to_url(path, port=port, https=https)
|
url = self.path_to_url(path, port=port, https=https)
|
||||||
self._wait_for_load_finished_url(url, timeout=timeout,
|
self.wait_for_load_finished_url(url, timeout=timeout,
|
||||||
load_status=load_status)
|
load_status=load_status)
|
||||||
|
|
||||||
def get_session(self):
|
def get_session(self):
|
||||||
"""Save the session and get the parsed session data."""
|
"""Save the session and get the parsed session data."""
|
||||||
|
Loading…
Reference in New Issue
Block a user