~loic.molinari/+junk/qtdeclarative-shadereffectsource-changes

« back to all changes in this revision

Viewing changes to tests/auto/qml/qqmlecmascript/data/tryStatement.2.qml

  • Committer: Loïc Molinari
  • Date: 2012-04-21 17:59:51 UTC
  • Revision ID: loic.molinari@canonical.com-20120421175951-bqx68caaf5zrp76l
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import Qt.test 1.0
 
2
 
 
3
MyQmlObject {
 
4
    property int defaultValue: 123
 
5
 
 
6
    function go() {
 
7
        return 321
 
8
    }
 
9
 
 
10
    value: try { go() } catch(e) { defaultValue }
 
11
}