aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_pane.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_pane.qml')
-rw-r--r--tests/auto/controls/data/tst_pane.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_pane.qml b/tests/auto/controls/data/tst_pane.qml
index 0d7e6536..8976d4f9 100644
--- a/tests/auto/controls/data/tst_pane.qml
+++ b/tests/auto/controls/data/tst_pane.qml
@@ -119,6 +119,8 @@ TestCase {
verify(control.contentItem)
compare(control.contentWidth, 0)
compare(control.contentHeight, 0)
+ compare(control.implicitContentWidth, 0)
+ compare(control.implicitContentHeight, 0)
}
function test_oneChild() {
@@ -127,8 +129,21 @@ TestCase {
compare(control.contentWidth, 100)
compare(control.contentHeight, 30)
+ compare(control.implicitContentWidth, 100)
+ compare(control.implicitContentHeight, 30)
verify(control.implicitWidth > 100)
verify(control.implicitHeight > 30)
+
+ compare(control.contentChildren.length, 1)
+ control.contentChildren[0].implicitWidth = 200
+ control.contentChildren[0].implicitHeight = 40
+
+ compare(control.contentWidth, 200)
+ compare(control.contentHeight, 40)
+ compare(control.implicitContentWidth, 200)
+ compare(control.implicitContentHeight, 40)
+ verify(control.implicitWidth > 200)
+ verify(control.implicitHeight > 40)
}
function test_twoChildren() {
@@ -137,6 +152,8 @@ TestCase {
compare(control.contentWidth, 0)
compare(control.contentHeight, 0)
+ compare(control.implicitContentWidth, 0)
+ compare(control.implicitContentHeight, 0)
verify(control.implicitWidth > 0)
verify(control.implicitHeight > 0)
}
@@ -147,6 +164,8 @@ TestCase {
compare(control.contentWidth, 100)
compare(control.contentHeight, 30)
+ compare(control.implicitContentWidth, 100)
+ compare(control.implicitContentHeight, 30)
verify(control.implicitWidth > 100)
verify(control.implicitHeight > 30)
}