summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/qtbug_11606.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-06-25 02:44:12 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-06-25 02:44:12 (GMT)
commitcfa9eee32081dc49ab0697b1f483db01c8aee7cd (patch)
tree29e4d1b4897d2c4f83d44a7a30a3fa9013ba8b87 /tests/auto/declarative/qdeclarativeecmascript/data/qtbug_11606.qml
parenta0d4f94c0eb3f724df979d9d22c4c944f34d547a (diff)
downloadQt-cfa9eee32081dc49ab0697b1f483db01c8aee7cd.zip
Qt-cfa9eee32081dc49ab0697b1f483db01c8aee7cd.tar.gz
Qt-cfa9eee32081dc49ab0697b1f483db01c8aee7cd.tar.bz2
Reading a property that doesn't exist throws a ReferenceError test
QTBUG-11606
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/qtbug_11606.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/qtbug_11606.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/qtbug_11606.qml b/tests/auto/declarative/qdeclarativeecmascript/data/qtbug_11606.qml
new file mode 100644
index 0000000..6efb9c1
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/qtbug_11606.qml
@@ -0,0 +1,12 @@
+import Qt 4.7
+
+QtObject {
+ property bool test: false
+ Component.onCompleted: {
+ try {
+ console.log(sorryNoSuchProperty);
+ } catch (e) {
+ test = true;
+ }
+ }
+}