~saviq/ubuntu/saucy/qtdeclarative-opensource-src/add-qtquick-delegate-range

« back to all changes in this revision

Viewing changes to tests/auto/qml/qqmlecmascript/data/qobjectConnectionListExceptionHandling.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}