aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/deleteLater.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/deleteLater.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/deleteLater.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/deleteLater.qml b/tests/auto/qml/qqmlecmascript/data/deleteLater.qml
new file mode 100644
index 0000000000..2a9ce44b20
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/deleteLater.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+
+QtObject {
+ id: root
+ property bool test: false
+
+ Component.onCompleted: {
+ try {
+ root.deleteLater()
+ } catch(e) {
+ test = true;
+ }
+ }
+}