summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
blob: c2edb416ac101894a041018e714d31732a5a1b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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: { console.log(a.value); }
    id: myObj
    onAnotherBasicSignal: myObj.trueProperty = false;
    onThirdBasicSignal: myObj.fakeProperty = "";
}