summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/enums.1.qml
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-02-11 08:45:31 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-02-11 08:45:31 (GMT)
commit1cd0e310f35125d4a4211c504647e918ef6220c4 (patch)
treeeb9d5ab8f2b4be40f38bb7b51f32db4c758e1473 /tests/auto/declarative/qmlecmascript/data/enums.1.qml
parent892d4b5e6e9495e29c4df40383e883fc19aa0baa (diff)
parent8ca8c0e7b8eef2a7e8f8babc7f54507541c81533 (diff)
downloadQt-1cd0e310f35125d4a4211c504647e918ef6220c4.zip
Qt-1cd0e310f35125d4a4211c504647e918ef6220c4.tar.gz
Qt-1cd0e310f35125d4a4211c504647e918ef6220c4.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml: (3397 commits) Update QmlChanges.txt Adds qml prefix to all declarative autotests Removed "running: true" for animations used as propertyvaluesource Animations are running by default when used as property source value Fix QmlEngine offlineStoragePath test. Fix Image test on Windows. Fix FontLoader test on Windows. Test should use ceil() not floor() since ceil() is used for calculating Fix BorderImage tests on Windows. Test should use ceil() not floor() since ceil() is used for calculating Clean up Must pass app arguments onto qExec() or else test system cannot QML Object toString should use 64-bit address on 64-bit platforms Improve stability of tst_qmlecmascript::dynamicDestruction Fix tst_qmlecmascript::callQtInvokables Fixed qmldebug* tests crashing. Fix declarative/qmldom::loadDynamicProperty autotest Fix declarative/animatedimage autotest Removed the tests/auto/declarative/visual(&examples) from .pro Add EXPECT_FAIL to js parser tests in declarative ui ...
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data/enums.1.qml')
-rw-r--r--tests/auto/declarative/qmlecmascript/data/enums.1.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/enums.1.qml b/tests/auto/declarative/qmlecmascript/data/enums.1.qml
new file mode 100644
index 0000000..6351823
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/enums.1.qml
@@ -0,0 +1,20 @@
+import Qt.test 1.0
+import Qt.test 1.0 as Namespace
+
+MyQmlObject {
+ // Enums from non-namespaced type
+ property int a: MyQmlObject.EnumValue1
+ property int b: MyQmlObject.EnumValue2
+ property int c: MyQmlObject.EnumValue3
+ property int d: MyQmlObject.EnumValue4
+
+ // Enums from namespaced type
+ property int e: Namespace.MyQmlObject.EnumValue1
+ property int f: Namespace.MyQmlObject.EnumValue2
+ property int g: Namespace.MyQmlObject.EnumValue3
+ property int h: Namespace.MyQmlObject.EnumValue4
+
+ // Test that enums don't mask attached properties
+ property int i: MyQmlObject.value
+ property int j: Namespace.MyQmlObject.value
+}