summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-04-21 16:29:43 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-04-21 16:29:43 (GMT)
commit871d67bb95a816bcf10aca5ee90f8a044427a25d (patch)
tree1f4a3f324ab9ba38282d8c72e0c417a927a84711 /tests
parentebe99949589e195a172aae699649be6f29ae389c (diff)
parent44a28b5530d3be2a12c91d084ea02f19aa6a9db3 (diff)
downloadQt-871d67bb95a816bcf10aca5ee90f8a044427a25d.zip
Qt-871d67bb95a816bcf10aca5ee90f8a044427a25d.tar.gz
Qt-871d67bb95a816bcf10aca5ee90f8a044427a25d.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/parserstress/tst_parserstress.cpp25
1 files changed, 16 insertions, 9 deletions
diff --git a/tests/auto/declarative/parserstress/tst_parserstress.cpp b/tests/auto/declarative/parserstress/tst_parserstress.cpp
index f61ca9f..294f2f7 100644
--- a/tests/auto/declarative/parserstress/tst_parserstress.cpp
+++ b/tests/auto/declarative/parserstress/tst_parserstress.cpp
@@ -130,17 +130,24 @@ void tst_parserstress::ecmascript()
QDeclarativeComponent component(&engine);
component.setData(qmlData, QUrl::fromLocalFile(SRCDIR + QString("/dummy.qml")));
- QSet<QString> failingTests;
- failingTests << "regress-352044-02-n.js"
- << "regress-334158.js";
+
QFileInfo info(file);
- foreach (const QString &failing, failingTests) {
- if (info.fileName().endsWith(failing)) {
- QEXPECT_FAIL("", "QTBUG-8108", Continue);
- break;
- }
+
+ if (info.fileName() == QLatin1String("regress-352044-02-n.js")) {
+ QVERIFY(component.isError());
+
+ QCOMPARE(component.errors().length(), 2);
+
+ QCOMPARE(component.errors().at(0).description(), QString("Expected token `;'"));
+ QCOMPARE(component.errors().at(0).line(), 66);
+
+ QCOMPARE(component.errors().at(1).description(), QString("Expected token `;'"));
+ QCOMPARE(component.errors().at(1).line(), 142);
+
+ } else {
+
+ QVERIFY(!component.isError());
}
- QVERIFY(!component.isError());
}