aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-30 13:39:43 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-30 20:54:05 +0000
commit5e226b8426a3366515dfdf791ea75e063f029afb (patch)
tree3df257b53ab00b9d567003415a718171d178f4b6 /tests/auto
parenta775baf6163cf02886dfb2e598e9a09c1bc05838 (diff)
Add missing StackView::view attached property
Change-Id: Ie2e5e09e906b2886525a986bccbd1b2722a0a795 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/controls/data/tst_stackview.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_stackview.qml b/tests/auto/controls/data/tst_stackview.qml
index 2d406e1b..b78b167c 100644
--- a/tests/auto/controls/data/tst_stackview.qml
+++ b/tests/auto/controls/data/tst_stackview.qml
@@ -146,6 +146,27 @@ TestCase {
control.destroy()
}
+ function test_view() {
+ var control = stackView.createObject(testCase)
+
+ var item1 = component.createObject(control)
+ compare(item1.AbstractStackView.view, null)
+ control.push(item1, AbstractStackView.Immediate)
+ compare(item1.AbstractStackView.view, control)
+
+ var item2 = component.createObject(control)
+ compare(item2.AbstractStackView.view, null)
+ control.push(item2, AbstractStackView.Immediate)
+ compare(item2.AbstractStackView.view, control)
+ compare(item1.AbstractStackView.view, control)
+
+ control.pop(AbstractStackView.Immediate)
+ compare(item2.AbstractStackView.view, null)
+ compare(item1.AbstractStackView.view, control)
+
+ control.destroy()
+ }
+
function test_depth() {
var control = stackView.createObject(testCase)
compare(control.depth, 0)