summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
blob: ff22990269123fe6c2cdc18b9c54fff6bb0d42a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Qt.test 1.0

MyQmlObject {
    Script { source: "scriptErrors.js" }
    Script { function getValue() { a = 10; return 0; } }

    property int t: a.value
    property int w: getValue();
    property int x: undefinedObject
    property int y: (a.value, undefinedObject)

    onBasicSignal: { print(a.value); }

}