From ae8f9b5f1192801e9d4591ef8be2d95cc9e48fac Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 12 May 2011 11:44:17 +0200 Subject: [PATCH] Added auto tests for properties initialized using JS statements --- .../qdeclarativelanguage/data/propertyInit.1.qml | 5 +++++ .../qdeclarativelanguage/data/propertyInit.2.qml | 6 ++++++ 2 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 tests/auto/declarative/qdeclarativelanguage/data/propertyInit.1.qml create mode 100644 tests/auto/declarative/qdeclarativelanguage/data/propertyInit.2.qml diff --git a/tests/auto/declarative/qdeclarativelanguage/data/propertyInit.1.qml b/tests/auto/declarative/qdeclarativelanguage/data/propertyInit.1.qml new file mode 100644 index 0000000..a7ef16a --- /dev/null +++ b/tests/auto/declarative/qdeclarativelanguage/data/propertyInit.1.qml @@ -0,0 +1,5 @@ +import QtQuick 1.0 + +QtObject { + property int test: { var _ = 1; _ } +} diff --git a/tests/auto/declarative/qdeclarativelanguage/data/propertyInit.2.qml b/tests/auto/declarative/qdeclarativelanguage/data/propertyInit.2.qml new file mode 100644 index 0000000..a165de8 --- /dev/null +++ b/tests/auto/declarative/qdeclarativelanguage/data/propertyInit.2.qml @@ -0,0 +1,6 @@ +import QtQuick 1.0 + +QtObject { + property int test: if (b == 1) 123; else 321; + property int b: 1 +} -- 1.7.2.5