From 13d3954de41451536dfbd8c562a1a258cdc4cc71 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 23 Jun 2013 14:31:12 +0200 Subject: Fix expected error messages in singleonType test 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 --- tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 17da0a418c..dcf72f9dc0 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -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") -- cgit v1.2.3