aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_toolbutton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_toolbutton.qml')
-rw-r--r--tests/auto/controls/data/tst_toolbutton.qml12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/auto/controls/data/tst_toolbutton.qml b/tests/auto/controls/data/tst_toolbutton.qml
index 5e1d5cd4..c78a922a 100644
--- a/tests/auto/controls/data/tst_toolbutton.qml
+++ b/tests/auto/controls/data/tst_toolbutton.qml
@@ -79,27 +79,22 @@ TestCase {
clickedSpy.clear()
}
- function test_defaults() {
+ function test_text() {
var control = toolButton.createObject(testCase)
verify(control)
- verify(control.label)
- compare(control.text, "")
- compare(control.pressed, false)
- control.destroy()
- }
- function test_text() {
- var control = toolButton.createObject(testCase)
compare(control.text, "")
control.text = "ToolButton"
compare(control.text, "ToolButton")
control.text = ""
compare(control.text, "")
+
control.destroy()
}
function test_mouse() {
var control = toolButton.createObject(testCase)
+ verify(control)
pressedSpy.target = control
clickedSpy.target = control
@@ -149,6 +144,7 @@ TestCase {
function test_keys() {
var control = toolButton.createObject(testCase)
+ verify(control)
clickedSpy.target = control
verify(clickedSpy.valid)