summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-03 09:14:58 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-03 09:14:58 (GMT)
commitd5c34887e0a563511ff124b497e5e869a64cda34 (patch)
treef4487349557fa5d085ce1ffe304f41798ebf7fa0 /tests
parent1cb4f7af901aab2d774731183123cd898561b13a (diff)
downloadQt-d5c34887e0a563511ff124b497e5e869a64cda34.zip
Qt-d5c34887e0a563511ff124b497e5e869a64cda34.tar.gz
Qt-d5c34887e0a563511ff124b497e5e869a64cda34.tar.bz2
Fix incorrect assert
QT-2432
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qmllanguage/data/crash2.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp6
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmllanguage/data/crash2.qml b/tests/auto/declarative/qmllanguage/data/crash2.qml
new file mode 100644
index 0000000..ae6f650
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/crash2.qml
@@ -0,0 +1,5 @@
+import Qt 4.6
+
+Object {
+ objectName: "Hello" + "World"
+}
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
index 128fa87..da586d9 100644
--- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
+++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
@@ -123,6 +123,7 @@ private slots:
// regression tests for crashes
void crash1();
+ void crash2();
private:
QmlEngine engine;
@@ -1152,6 +1153,11 @@ void tst_qmllanguage::crash1()
QmlComponent component(&engine, "Component {}");
}
+void tst_qmllanguage::crash2()
+{
+ QmlComponent component(&engine, TEST_FILE("crash2.qml"));
+}
+
QTEST_MAIN(tst_qmllanguage)
#include "tst_qmllanguage.moc"