aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml
blob: 7c691435ea19ed359fcbc495168b8d59cea048ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import QtQuick 2.0
import Qt.test 1.0

MyQmlObject {
    property bool test: false
    property string string1

    qjsvalue: function () {
        string1 = "Test case 1"
        return 100;
    }

    Component.onCompleted: {
        if (qjsvalue() != 100)
            return

        if (string1 != "Test case 1")
            return;

        test = true;
    }
}