fix-ui-preserve-acrylic-after-browser-navigation
Core regression / Python core and release configuration (push) Successful in 17s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Successful in 15s
Core regression / JavaScript syntax (pull_request) Successful in 3s
Core regression / Python core and release configuration (push) Successful in 17s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Successful in 15s
Core regression / JavaScript syntax (pull_request) Successful in 3s
This commit is contained in:
1 parent
e9454cf01f
commit
ba1d50cdfc
4 files changed
+74
-3
No files matched your search
@@ -93,6 +93,19 @@ def test_repeated_refresh_does_not_reconfigure_composition(qtbot):
|
||||
assert len(backend.calls)==1
|
||||
|
||||
|
||||
def test_webengine_has_its_own_native_composition_parent(qtbot, tmp_path):
|
||||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtWidgets import QVBoxLayout
|
||||
from dx_productivity.trial_task_center.ui.dsh_native import NativeHarnessView
|
||||
window=QWidget();qtbot.addWidget(window)
|
||||
window.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||
view=NativeHarnessView(tmp_path,window)
|
||||
QVBoxLayout(window).addWidget(view)
|
||||
window.show()
|
||||
# The browser must compose into its child HWND, not the Acrylic HWND.
|
||||
assert view.web.nativeParentWidget() is view
|
||||
|
||||
|
||||
def test_deferred_material_refresh_never_uses_a_destroyed_window(qtbot,qapp):
|
||||
from PySide6.QtCore import QCoreApplication,QEvent
|
||||
window=QWidget() # This test owns destruction rather than pytest-qt teardown.
|
||||
|
||||
Reference in new issue
Block a user