diff options
Diffstat (limited to 'tests/auto/controls/data/tst_frame.qml')
-rw-r--r-- | tests/auto/controls/data/tst_frame.qml | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_frame.qml b/tests/auto/controls/data/tst_frame.qml index feb6cf11..d50a0dfc 100644 --- a/tests/auto/controls/data/tst_frame.qml +++ b/tests/auto/controls/data/tst_frame.qml @@ -57,7 +57,7 @@ TestCase { Component { id: oneChildFrame - GroupBox { + Frame { Item { implicitWidth: 100 implicitHeight: 30 @@ -67,7 +67,7 @@ TestCase { Component { id: twoChildrenFrame - GroupBox { + Frame { Item { implicitWidth: 100 implicitHeight: 30 @@ -79,6 +79,16 @@ TestCase { } } + Component { + id: contentFrame + Frame { + contentItem: Item { + implicitWidth: 100 + implicitHeight: 30 + } + } + } + function test_empty() { var control = frame.createObject(testCase) verify(control) @@ -113,4 +123,16 @@ TestCase { control.destroy() } + + function test_contentItem() { + var control = contentFrame.createObject(testCase) + verify(control) + + compare(control.contentWidth, 100) + compare(control.contentHeight, 30) + verify(control.implicitWidth > 100) + verify(control.implicitHeight > 30) + + control.destroy() + } } |