aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/signalWithQJSValue.qml
blob: 36f481d53334d4aa8118d3a2486624ea81ec4b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Qt.test 1.0

MyQmlObject {
    property string expression
    property string compare
    property bool pass: false

    onSignalWithQJSValue:
    {
        qjsvalueMethod(arg);
        var expected = eval(expression);
        pass = eval(compare)(arg, expected);
    }
}