Show 'legacy QtWebKit' in version output
This commit is contained in:
parent
8191a5465a
commit
4ae8e247d0
@ -296,8 +296,9 @@ def _chromium_version():
|
||||
def _backend():
|
||||
"""Get the backend line with relevant information."""
|
||||
if objects.backend == usertypes.Backend.QtWebKit:
|
||||
return 'QtWebKit{} (WebKit {})'.format(
|
||||
'-NG' if qtutils.is_qtwebkit_ng() else '', qWebKitVersion())
|
||||
return '{} (WebKit {})'.format(
|
||||
'QtWebKit-NG' if qtutils.is_qtwebkit_ng() else 'legacy QtWebKit',
|
||||
qWebKitVersion())
|
||||
else:
|
||||
webengine = usertypes.Backend.QtWebEngine
|
||||
assert objects.backend == webengine, objects.backend
|
||||
|
@ -849,11 +849,12 @@ def test_version_output(git_commit, frozen, style, with_webkit,
|
||||
patches['objects.backend'] = usertypes.Backend.QtWebKit
|
||||
patches['QWebEngineProfile'] = None
|
||||
if with_webkit == 'ng':
|
||||
backend = 'QtWebKit-NG'
|
||||
patches['qtutils.is_qtwebkit_ng'] = lambda: True
|
||||
substitutions['backend'] = 'QtWebKit-NG (WebKit WEBKIT VERSION)'
|
||||
else:
|
||||
backend = 'legacy QtWebKit'
|
||||
patches['qtutils.is_qtwebkit_ng'] = lambda: False
|
||||
substitutions['backend'] = 'QtWebKit (WebKit WEBKIT VERSION)'
|
||||
substitutions['backend'] = backend + ' (WebKit WEBKIT VERSION)'
|
||||
else:
|
||||
monkeypatch.delattr(version, 'qtutils.qWebKitVersion', raising=False)
|
||||
patches['objects.backend'] = usertypes.Backend.QtWebEngine
|
||||
|
Loading…
Reference in New Issue
Block a user