aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_togglebutton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_togglebutton.qml')
-rw-r--r--tests/auto/controls/data/tst_togglebutton.qml16
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/auto/controls/data/tst_togglebutton.qml b/tests/auto/controls/data/tst_togglebutton.qml
index 8b7d0a85..416be713 100644
--- a/tests/auto/controls/data/tst_togglebutton.qml
+++ b/tests/auto/controls/data/tst_togglebutton.qml
@@ -88,29 +88,22 @@ TestCase {
clickedSpy.clear()
}
- function test_defaults() {
+ function test_text() {
var control = toggleButton.createObject(testCase)
verify(control)
- verify(control.label)
- verify(control.indicator)
- compare(control.text, "")
- compare(control.pressed, false)
- compare(control.checked, false)
- control.destroy()
- }
- function test_text() {
- var control = toggleButton.createObject(testCase)
compare(control.text, "")
control.text = "ToggleButton"
compare(control.text, "ToggleButton")
control.text = ""
compare(control.text, "")
+
control.destroy()
}
function test_checked() {
var control = toggleButton.createObject(testCase)
+ verify(control)
checkedSpy.target = control
verify(checkedSpy.valid)
@@ -131,6 +124,7 @@ TestCase {
function test_mouse() {
var control = toggleButton.createObject(testCase)
+ verify(control)
checkedSpy.target = control
pressedSpy.target = control
@@ -203,6 +197,7 @@ TestCase {
function test_keys() {
var control = toggleButton.createObject(testCase)
+ verify(control)
checkedSpy.target = control
clickedSpy.target = control
@@ -246,6 +241,7 @@ TestCase {
function test_binding() {
var container = twoToggleButtones.createObject(testCase)
+ verify(container)
compare(container.tb1.checked, false)
compare(container.tb2.checked, false)