aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_toolbar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_toolbar.qml')
-rw-r--r--tests/auto/controls/data/tst_toolbar.qml11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_toolbar.qml b/tests/auto/controls/data/tst_toolbar.qml
index 6b343894..8b20cca8 100644
--- a/tests/auto/controls/data/tst_toolbar.qml
+++ b/tests/auto/controls/data/tst_toolbar.qml
@@ -79,29 +79,38 @@ TestCase {
}
}
- function test_defaults() {
+ function test_empty() {
var control = toolBar.createObject(testCase)
+ verify(control)
+
verify(control.contentItem)
compare(control.contentWidth, 0)
compare(control.contentHeight, 0)
+
control.destroy()
}
function test_oneChild() {
var control = oneChildBar.createObject(testCase)
+ verify(control)
+
compare(control.contentWidth, 100)
compare(control.contentHeight, 30)
verify(control.implicitWidth > 100)
verify(control.implicitHeight > 30)
+
control.destroy()
}
function test_twoChildren() {
var control = twoChildrenBar.createObject(testCase)
+ verify(control)
+
compare(control.contentWidth, 0)
compare(control.contentHeight, 0)
verify(control.implicitWidth > 0)
verify(control.implicitHeight > 0)
+
control.destroy()
}
}