Fix expected error messages in singleonType test
authorSimon Hausmann <simon.hausmann@digia.com>
Sun, 23 Jun 2013 12:31:12 +0000 (14:31 +0200)
committerLars Knoll <lars.knoll@digia.com>
Sun, 23 Jun 2013 19:36:40 +0000 (21:36 +0200)
Writing to a property of a frozen object doesn't throw a type error
exception in non-strict mode.

Change-Id: I408078a2a09d16868b95f275f13f2f7a176f66e9
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp

index 17da0a4..dcf72f9 100644 (file)
@@ -3635,8 +3635,7 @@ void tst_qqmlecmascript::singletonType_data()
     QTest::newRow("script, writing + readonly constraints")
             << testFileUrl("singletontype/scriptSingletonTypeWriting.qml")
             << QString()
-            << (QStringList() <<
-                    QString(testFileUrl("singletontype/scriptSingletonTypeWriting.qml").toString() + QLatin1String(":21: TypeError: Cannot assign to read-only property \"scriptTestProperty\"")))
+            << (QStringList())
             << (QStringList() << "readBack" << "unchanged")
             << (QVariantList() << 15 << 42)
             << (QStringList() << "firstProperty" << "secondProperty")