Avoid dynamic lookup of signal handler arguments
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / signalArguments.2.qml
1 import Qt.test 1.0
2
3 MyQmlObject {
4     property int argumentCount: -1
5     property bool calleeCorrect: false
6
7     onArgumentSignal: {
8         argumentCount = arguments.length
9         calleeCorrect = (arguments.callee === onArgumentSignal)
10         setString('pass ' + arguments[0] + ' ' + arguments[1] + ' '
11                           + arguments[2] + ' ' + arguments[3] + ' '
12                           + arguments[4])
13     }
14 }