Allow to open chrome:// URLs in BDD tests
This commit is contained in:
parent
1af951fd62
commit
580648da32
@ -297,7 +297,8 @@ class QuteProc(testprocess.Process):
|
|||||||
URLs like about:... and qute:... are handled specially and returned
|
URLs like about:... and qute:... are handled specially and returned
|
||||||
verbatim.
|
verbatim.
|
||||||
"""
|
"""
|
||||||
if path.startswith('about:') or path.startswith('qute:'):
|
special_schemes = ['about:', 'qute:', 'chrome:']
|
||||||
|
if any(path.startswith(scheme) for scheme in special_schemes):
|
||||||
return path
|
return path
|
||||||
else:
|
else:
|
||||||
httpbin = self.request.getfixturevalue('httpbin')
|
httpbin = self.request.getfixturevalue('httpbin')
|
||||||
|
Loading…
Reference in New Issue
Block a user