aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-03 13:12:27 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-03 17:18:12 +0000
commit5801239f70614e94f4a977b4122079c4ce2c232c (patch)
tree9f4e2ee124e2a08c969b80cefb7ed224c063a723 /tests/auto
parent6f9c52781a6ae2c84cb8b6e849a18856aef60f80 (diff)
Promote Button::highlighted to AbstractButton
Change-Id: I0e17a6c25dfd89fdb547720e9a626c2ec9d7765a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/controls/data/tst_abstractbutton.qml9
-rw-r--r--tests/auto/controls/data/tst_button.qml9
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/auto/controls/data/tst_abstractbutton.qml b/tests/auto/controls/data/tst_abstractbutton.qml
index 11537d68..4e635d63 100644
--- a/tests/auto/controls/data/tst_abstractbutton.qml
+++ b/tests/auto/controls/data/tst_abstractbutton.qml
@@ -67,4 +67,13 @@ TestCase {
control.destroy();
}
+
+ function test_highlighted() {
+ var control = button.createObject(testCase)
+ verify(control)
+ compare(control.highlighted, false)
+
+ control.highlighted = true
+ compare(control.highlighted, true)
+ }
}
diff --git a/tests/auto/controls/data/tst_button.qml b/tests/auto/controls/data/tst_button.qml
index 873009e8..21e8a228 100644
--- a/tests/auto/controls/data/tst_button.qml
+++ b/tests/auto/controls/data/tst_button.qml
@@ -291,15 +291,6 @@ TestCase {
control.destroy()
}
- function test_highlighted() {
- var control = button.createObject(testCase)
- verify(control)
- compare(control.highlighted, false)
-
- control.highlighted = true
- compare(control.highlighted, true)
- }
-
function test_baseline() {
var control = button.createObject(testCase)
verify(control)