aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/qtbug34792.qml
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-11-18 15:33:19 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-19 13:00:37 +0100
commit48c45418cce7a377eb9117b2f120d5d5aaf3530a (patch)
tree718992832395fa5721879c95757f1a1b2208e6f0 /tests/auto/qml/qqmlecmascript/data/qtbug34792.qml
parentcac9989643d54b15ea0b8e53889336b429e4504d (diff)
V4: remove failing assert and fix code.
Assert failed for cases where the node’s ancestor with lowest semi-dominator number was not the same as the parent. The test case exemplifies this. Task-number: QTBUG-34792 Change-Id: Ie6847b22a27211801bff7479bfcbfaf329c6005a Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/qtbug34792.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/qtbug34792.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/qtbug34792.qml b/tests/auto/qml/qqmlecmascript/data/qtbug34792.qml
new file mode 100644
index 0000000000..37c551b587
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/qtbug34792.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.1
+Rectangle {
+ function foo()
+ {
+ for (var i = 0; i < 1; i++)
+ {
+ if (i >= 0)
+ break
+
+ return
+ }
+
+ }
+}