aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-29 22:03:07 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-30 14:32:45 +0000
commit542dd7b77a236fef03e5569e44669fad6db0485d (patch)
treefb039a24e51161b8c0891b64d44945b1d8a77b85 /tests/auto/controls
parent45cf8b973b9160af5b1ef01194cdc820283c0d56 (diff)
Add PageIndicator::interactive
Change-Id: Iecb6d855d1c7710901925097ad4e03006d58309c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls')
-rw-r--r--tests/auto/controls/data/tst_pageindicator.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_pageindicator.qml b/tests/auto/controls/data/tst_pageindicator.qml
index 9ffdd4ec..9ac98e46 100644
--- a/tests/auto/controls/data/tst_pageindicator.qml
+++ b/tests/auto/controls/data/tst_pageindicator.qml
@@ -76,4 +76,23 @@ TestCase {
control.destroy()
}
+
+ function test_interactive() {
+ var control = pageIndicator.createObject(testCase, {count: 5})
+ verify(control)
+
+ verify(!control.interactive)
+ compare(control.currentIndex, 0)
+
+ mouseClick(control, control.width / 2, control.height / 2, Qt.LeftButton)
+ compare(control.currentIndex, 0)
+
+ control.interactive = true
+ verify(control.interactive)
+
+ mouseClick(control, control.width / 2, control.height / 2, Qt.LeftButton)
+ compare(control.currentIndex, 2)
+
+ control.destroy()
+ }
}