summaryrefslogtreecommitdiff
path: root/tests/auto/qml
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-10-05 13:51:10 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-10-12 08:50:26 +0200
commit03689eeb5043dd8c49be87ec45b92a388232fdcf (patch)
treecaeff068cac58217d6249644fd787fef7b423d0e /tests/auto/qml
parentd48566234f23e9c7381afb192cc26da176741af8 (diff)
downloadqt-creator-03689eeb5043dd8c49be87ec45b92a388232fdcf.tar.gz
QmlJS checks: Allow calling some builtin constructors as functions.
String, Boolean, Number and Object perform type conversion. Date returns the current date. Change-Id: I51e5bcbb0fa85ceb30b3ee3749f96c3e3b12ca21 Reviewed-on: http://codereview.qt-project.org/6043 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Diffstat (limited to 'tests/auto/qml')
-rw-r--r--tests/auto/qml/codemodel/check/new-expression.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/codemodel/check/new-expression.qml b/tests/auto/qml/codemodel/check/new-expression.qml
index 31cc4458f4..5aa1fd822c 100644
--- a/tests/auto/qml/codemodel/check/new-expression.qml
+++ b/tests/auto/qml/codemodel/check/new-expression.qml
@@ -11,5 +11,9 @@ Item {
function foo() {
a = A() // 306 13 13
a = a()
+ a = Number("abc")
+ a = String(12)
+ a = Boolean(12)
+ a = Date()
}
}