From 9c2a2e94f4d95b5fc26e929650e475adffbee6ae Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 22 Jul 2009 18:25:48 +0200 Subject: tst_QScriptValue::toVariant is not about testing reg exp --- tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index 3c9108b..0036d95 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -1273,10 +1273,9 @@ void tst_QScriptValue::toVariant() } { - QRegExp rx = QRegExp("[0-9a-z]+"); + QRegExp rx = QRegExp("[0-9a-z]+", Qt::CaseSensitive, QRegExp::RegExp2); QScriptValue rxObject = eng.newRegExp(rx); QVariant var = rxObject.toVariant(); - QEXPECT_FAIL("", "toRegExp() is broken (doesn't remember patternSyntax of original regexp)", Continue); QCOMPARE(var, QVariant(rx)); } -- cgit v0.12