acd512a2be1fce90db8fa1ba9467568044a8048d
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / qobjectConnectionListExceptionHandling.qml
1 import QtQuick 2.0
2
3 Item {
4     id: root
5     property int first: 5
6     property bool test: false
7
8     Item {
9         id: exceptional
10         function exceptionalFunction() {
11             var obj = undefined;
12             var prop = undefined;
13             return obj[prop];
14         }
15     }
16
17     Component.onCompleted: {
18         root["firstChanged"].connect(exceptional.exceptionalFunction);
19         root["firstChanged"].connect(exceptional.exceptionalFunction);
20         root["firstChanged"].connect(exceptional.exceptionalFunction);
21         first = 6;
22         test = true;
23     }
24 }