diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-11 13:45:40 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-11 13:51:50 (GMT) |
commit | 282315cb9d9c0fafd8ff281401da59022f1fadf4 (patch) | |
tree | a4428d91779702e643d5f1d9d197c4ccd8fd0204 | |
parent | dfb33cf9739a6dd0a6c90961c65f71692f093a38 (diff) | |
download | Qt-282315cb9d9c0fafd8ff281401da59022f1fadf4.zip Qt-282315cb9d9c0fafd8ff281401da59022f1fadf4.tar.gz Qt-282315cb9d9c0fafd8ff281401da59022f1fadf4.tar.bz2 |
Add EXPECT_FAIL to js parser tests in declarative ui
Created QTBUG-8108 for handling these failures.
-rw-r--r-- | tests/auto/declarative/parserstress/tst_parserstress.cpp | 14 |
1 files 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<QString> 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()); } |