From 21751603b48b507b1216479b05c0bfc711c1cdd9 Mon Sep 17 00:00:00 2001 From: Philipp Albrecht Date: Wed, 23 Aug 2023 09:27:31 +0200 Subject: Support opening file:// URLs in end2end tests This is required to use BDD steps like the following: ``` When I open file://path/to/file.html ``` If we don't treat `file:` as a special scheme, we implicitly convert it to an invalid URL: ``` http://localhost:48595/file:///path/to/file.html ``` --- tests/end2end/fixtures/quteprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index a3929ed7e..cf00c38da 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -393,7 +393,7 @@ class QuteProc(testprocess.Process): verbatim. """ special_schemes = ['about:', 'qute:', 'chrome:', 'view-source:', - 'data:', 'http:', 'https:'] + 'data:', 'http:', 'https:', 'file:'] server = self.request.getfixturevalue('server') server_port = server.port if port is None else port -- cgit v1.2.3-54-g00ecf