From 282315cb9d9c0fafd8ff281401da59022f1fadf4 Mon Sep 17 00:00:00 2001 From: Leonardo Sobral Cunha Date: Thu, 11 Feb 2010 13:45:40 +0000 Subject: Add EXPECT_FAIL to js parser tests in declarative ui Created QTBUG-8108 for handling these failures. --- tests/auto/declarative/parserstress/tst_parserstress.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/auto/declarative/parserstress/tst_parserstress.cpp b/tests/auto/declarative/parserstress/tst_parserstress.cpp index fe177d1..a607bb3 100644 --- a/tests/auto/declarative/parserstress/tst_parserstress.cpp +++ b/tests/auto/declarative/parserstress/tst_parserstress.cpp @@ -87,8 +87,8 @@ QStringList tst_parserstress::findJSFiles(const QDir &d) void tst_parserstress::ecmascript_data() { QDir dir(SRCDIR); - dir.cdUp(); - dir.cdUp(); + dir.cdUp(); + dir.cdUp(); dir.cd("qscriptjstestsuite"); dir.cd("tests"); @@ -132,6 +132,16 @@ void tst_parserstress::ecmascript() QmlComponent component(&engine); component.setData(qmlData, QUrl::fromLocalFile(SRCDIR + QString("/dummy.qml"))); + QSet failingTests; + failingTests << "uc-003.js" << "uc-005.js" << "regress-352044-02-n.js" + << "regress-334158.js" << "regress-58274.js" << "dowhile-006.js" << "dowhile-005.js"; + QFileInfo info(file); + foreach (const QString &failing, failingTests) { + if (info.fileName().endsWith(failing)) { + QEXPECT_FAIL("", "QTBUG-8108", Continue); + break; + } + } QVERIFY(!component.isError()); } -- cgit v0.12