Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added auto tests for properties initialized using JS statements
- Loading branch information
Roberto Raggi
committed
May 12, 2011
1 parent
f31d94f
commit ae8f9b5
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
tests/auto/declarative/qdeclarativelanguage/data/propertyInit.1.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import QtQuick 1.0 | ||
|
||
QtObject { | ||
property int test: { var _ = 1; _ } | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/auto/declarative/qdeclarativelanguage/data/propertyInit.2.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import QtQuick 1.0 | ||
|
||
QtObject { | ||
property int test: if (b == 1) 123; else 321; | ||
property int b: 1 | ||
} |