diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-23 14:31:12 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-06-23 21:36:40 +0200 |
commit | 13d3954de41451536dfbd8c562a1a258cdc4cc71 (patch) | |
tree | b11233a858f5ea12d6da89818f2ef9479f0205cd | |
parent | 6a9badef274b55ae0ed06ca96cbe035b445fcf5b (diff) |
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 <lars.knoll@digia.com>
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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") |