Allow to open chrome:// URLs in BDD tests

This commit is contained in:
Florian Bruhin 2017-02-08 11:32:14 +01:00
parent 1af951fd62
commit 580648da32

View File

@ -297,7 +297,8 @@ class QuteProc(testprocess.Process):
URLs like about:... and qute:... are handled specially and returned
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
else:
httpbin = self.request.getfixturevalue('httpbin')