diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-11 06:59:37 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-11 14:50:32 +0100 |
commit | 163b0056096a9d7eca2272fe7e969f99ecd1cab8 (patch) | |
tree | a2b8a779134991c4f7f69fa4c53019781d0e0b64 /tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | |
parent | 731139b512db04dcb52db4ef3c4c1ad51007e2c7 (diff) |
Fix the test suite
We now fail when parsing octal numbers or escape sequences. This
is ok according to the EcmaScript 5.1 spec. So remove all usages
of these numbers or sequences.
In addition delete an invalid test case that can't possibly be
parsed correctly. V8 also chokes on it.
Change-Id: I889de2810310f38206343d16175f9e31ddb44d30
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r-- | tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp index cf6c83444e..70f8f484e0 100644 --- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp +++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp @@ -3066,8 +3066,8 @@ void tst_qqmllanguage::literals_data() QTest::newRow("special9") << "c9" << QVariant(QString("\\")); // We don't handle octal escape sequences // QTest::newRow("special10") << "c10" << QVariant(QString("\251")); - QTest::newRow("special11") << "c11" << QVariant(QString::fromLatin1("\xa9")); - QTest::newRow("special12") << "c12" << QVariant(QString::fromUtf8("\u00A9")); + QTest::newRow("special11") << "c10" << QVariant(QString::fromLatin1("\xa9")); + QTest::newRow("special12") << "c11" << QVariant(QString::fromUtf8("\u00A9")); } void tst_qqmllanguage::literals() |