diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_applicationwindow.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_applicationwindow.qml b/tests/auto/controls/data/tst_applicationwindow.qml index 85c88ece..72dfb1cd 100644 --- a/tests/auto/controls/data/tst_applicationwindow.qml +++ b/tests/auto/controls/data/tst_applicationwindow.qml @@ -236,5 +236,29 @@ TestCase { window.destroy() } + function test_invisibleContentItemChildren() { + var test_control = 'import QtQuick 2.2; \ + import QtQuick.Controls 1.2; \ + ApplicationWindow { \ + Rectangle { \ + visible: false; \ + implicitWidth: 400; \ + implicitHeight: 400; \ + } \ + Rectangle { \ + anchors.fill: parent; \ + implicitWidth: 300; \ + implicitHeight: 300; \ + } \ + } ' + + var window = Qt.createQmlObject(test_control, container, '') + window.visible = true + waitForRendering(window.contentItem) + compare(window.width, 300) + compare(window.height, 300) + window.destroy() + } + } } |