aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-25 21:30:59 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-23 15:34:00 +0000
commite1bf1e9a03066a9029132e476794d3f16abcd6ff (patch)
treee2714d3b5267014500dfe293a0616c22e803476b /tests/auto/controls
parent2bbe54908b7ccfef8448b2db586be2c3a25bbcb6 (diff)
StackView: add dedicated replace transitions
Change-Id: I614d11bb566c96166ebf8bc0d2f5d4286d823a5f Reviewed-by: Kai Uwe Broulik <kde@privat.broulik.de> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls')
-rw-r--r--tests/auto/controls/data/tst_stackview.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_stackview.qml b/tests/auto/controls/data/tst_stackview.qml
index 3dc6d0c9..22d4cfe3 100644
--- a/tests/auto/controls/data/tst_stackview.qml
+++ b/tests/auto/controls/data/tst_stackview.qml
@@ -451,6 +451,8 @@ TestCase {
property int popExitRuns
property int pushEnterRuns
property int pushExitRuns
+ property int replaceEnterRuns
+ property int replaceExitRuns
popEnter: Transition {
PauseAnimation { duration: 1 }
onRunningChanged: if (!running) ++popEnterRuns
@@ -467,6 +469,14 @@ TestCase {
PauseAnimation { duration: 1 }
onRunningChanged: if (!running) ++pushExitRuns
}
+ replaceEnter: Transition {
+ PauseAnimation { duration: 1 }
+ onRunningChanged: if (!running) ++replaceEnterRuns
+ }
+ replaceExit: Transition {
+ PauseAnimation { duration: 1 }
+ onRunningChanged: if (!running) ++replaceExitRuns
+ }
}
}
@@ -484,6 +494,11 @@ TestCase {
compare(control.pushEnterRuns, 1)
compare(control.pushExitRuns, 1)
+ control.replace(component)
+ tryCompare(control, "busy", false)
+ compare(control.replaceEnterRuns, 1)
+ compare(control.replaceExitRuns, 1)
+
control.pop()
tryCompare(control, "busy", false)
compare(control.popEnterRuns, 1)