From 580648da32b43fe02c417e3b917faa39fb0acb17 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 8 Feb 2017 11:32:14 +0100 Subject: [PATCH] Allow to open chrome:// URLs in BDD tests --- tests/end2end/fixtures/quteprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index 7eb4a1113..2ca361529 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -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')