Fix test_disable_gpu with QtWebKit
This commit is contained in:
parent
41b5fca9b7
commit
40b1be6925
@ -400,9 +400,9 @@ class TestQtArgs:
|
|||||||
assert configinit.qt_args(parsed) == expected
|
assert configinit.qt_args(parsed) == expected
|
||||||
|
|
||||||
def test_disable_gpu(self, config_stub, monkeypatch, parser):
|
def test_disable_gpu(self, config_stub, monkeypatch, parser):
|
||||||
config_stub.val.qt.force_software_rendering = 'chromium'
|
|
||||||
monkeypatch.setattr(configinit.objects, 'backend',
|
monkeypatch.setattr(configinit.objects, 'backend',
|
||||||
usertypes.Backend.QtWebEngine)
|
usertypes.Backend.QtWebEngine)
|
||||||
|
config_stub.val.qt.force_software_rendering = 'chromium'
|
||||||
parsed = parser.parse_args([])
|
parsed = parser.parse_args([])
|
||||||
expected = [sys.argv[0], '--disable-gpu']
|
expected = [sys.argv[0], '--disable-gpu']
|
||||||
assert configinit.qt_args(parsed) == expected
|
assert configinit.qt_args(parsed) == expected
|
||||||
|
Loading…
Reference in New Issue
Block a user