aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_button.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_button.qml')
-rw-r--r--tests/auto/controls/data/tst_button.qml18
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/auto/controls/data/tst_button.qml b/tests/auto/controls/data/tst_button.qml
index ce3ae6c5..eab82eab 100644
--- a/tests/auto/controls/data/tst_button.qml
+++ b/tests/auto/controls/data/tst_button.qml
@@ -62,33 +62,22 @@ TestCase {
}
}
- function init() {
- }
-
- function cleanup() {
- }
-
- function test_defaults() {
+ function test_text() {
var control = button.createObject(testCase)
verify(control)
- verify(control.label)
- compare(control.text, "")
- compare(control.pressed, false)
- control.destroy()
- }
- function test_text() {
- var control = button.createObject(testCase)
compare(control.text, "")
control.text = "Button"
compare(control.text, "Button")
control.text = ""
compare(control.text, "")
+
control.destroy()
}
function test_mouse() {
var control = button.createObject(testCase)
+ verify(control)
// click
control.spy.expectedSequence = [["pressedChanged", { "pressed": true }], "pressed"]
@@ -133,6 +122,7 @@ TestCase {
function test_keys() {
var control = button.createObject(testCase)
+ verify(control)
control.forceActiveFocus()
verify(control.activeFocus)