diff options
author | toofar <toofar@spalge.com> | 2024-04-26 19:10:46 +1200 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2024-04-27 18:05:44 +1200 |
commit | ef33bde30fd4fb5838b57ba9ed64e351a2e8af73 (patch) | |
tree | 5a885656ef177493149dc14e015551d95bfd806d | |
parent | ba657ada7e7011582d561b2f47ff3a4158c66827 (diff) | |
download | qutebrowser-ef33bde30fd4fb5838b57ba9ed64e351a2e8af73.tar.gz qutebrowser-ef33bde30fd4fb5838b57ba9ed64e351a2e8af73.zip |
Position e2e browser at top left corner of screen
When taking screenshots of the test process running under xvfb it's
offset from the top left corner, the default geometry of qutebrowser is
800x600+50+50. The default size of pytest-xvfb is 800x600, which means
part of the browser window is outside the X11 screen and doesn't get
captured.
This commit duplicates the width and height from the default geometry in
mainwindow.py but sets the x and y offsets to zero so that the browser
window is fully contained within the X11 window.
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index 6c491515e..0dc7858fd 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -415,7 +415,8 @@ class QuteProc(testprocess.Process): '--debug-flag', 'werror', '--debug-flag', 'test-notification-service', '--debug-flag', 'caret', - '--qt-flag', 'disable-features=PaintHoldingCrossOrigin'] + '--qt-flag', 'disable-features=PaintHoldingCrossOrigin', + '--qt-arg', 'geometry', '800x600+0+0'] if self.request.config.webengine and testutils.disable_seccomp_bpf_sandbox(): args += testutils.DISABLE_SECCOMP_BPF_ARGS |