2 import Qt.test 1.0 as Namespace
7 property int a: MyQmlObject.EnumValue10
8 property int b: Namespace.MyQmlObject.EnumValue10
9 property int c: child.enumProperty
11 // test binding codepath
12 property MyUnregisteredEnumTypeObject child: MyUnregisteredEnumTypeObject {
13 enumProperty: undefined
16 // test assignment codepaths
17 function testAssignmentOne() {
18 child.enumProperty = function() { return "Hello, world!" }; // cannot assign function to non-var prop.
20 function testAssignmentTwo() {
21 child.enumProperty = MyUnregisteredEnumTypeObject.Firstvalue; // note: incorrect capitalisation
23 function testAssignmentThree() {
24 child.enumProperty = undefined; // directly set undefined value
30 property MyUnregisteredEnumTypeObject child2: MyUnregisteredEnumTypeObject {
33 function testAssignmentFour() {
34 child2.enumProperty = root.d;