aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/auto.pro
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-14 16:28:25 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-14 16:10:05 +0000
commitf5b24fd48d494d2c43c34cab84f34d1f2e4e33a8 (patch)
tree531080c80560d23f854b16cc2ff3aa4ea63ebd32 /tests/auto/auto.pro
parent55a6938b3204b28976d456be9f9f68bf44c22051 (diff)
Auto test anchors & attached objects
Rename the former tst_declarative to tst_sanity and extend it with tests to prevent: a) use of anchors, and b) multiple attached object instances of the same type. Anchors are not allowed for two reasons: - performance (QQuickAnchors is a QObject), and - to let users relayout delegates (x/y/width/height bindings can be overridden, anchors not so easily) Multiple attached object instances (eg. Theme) can easily happen by accident. "Theme.fooColor" can be used in the control root, but in all delegate items, "control.Theme.fooColor" must be used instead. Change-Id: I4045d5bd717fa21db79d1c3bd618fc450e292fa4 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto/auto.pro')
-rw-r--r--tests/auto/auto.pro4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index fca8731c..a5cbd53c 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -1,5 +1,5 @@
TEMPLATE = subdirs
SUBDIRS += \
controls \
- declarative \
- extras
+ extras \
+ sanity