diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-05 16:02:47 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-05 16:02:47 (GMT) |
commit | a0fecb437176786e9c809a45e64351516b05a201 (patch) | |
tree | dba10b91d8104aad7896a766462899e589b9144b /tests | |
parent | 43ab9a27363681c5db81004c95141b3d0695cabd (diff) | |
download | Qt-a0fecb437176786e9c809a45e64351516b05a201.zip Qt-a0fecb437176786e9c809a45e64351516b05a201.tar.gz Qt-a0fecb437176786e9c809a45e64351516b05a201.tar.bz2 |
RegExp.prototype.toString() when pattern is empty
Like ECMA-262 says, // starts a single-line comment;
/(?:)/ represents an empty regular expression.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qscriptengine/tst_qscriptengine.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp index ec84406..7f22316 100644 --- a/tests/auto/qscriptengine/tst_qscriptengine.cpp +++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp @@ -508,12 +508,10 @@ void tst_QScriptEngine::newRegExp() QScriptValue r9 = rxCtor.construct(); QVERIFY(r9.isRegExp()); - QEXPECT_FAIL("", "JSC: String representation of regexp with empty pattern is wrong", Continue); QCOMPARE(r9.toString(), QString::fromLatin1("/(?:)/")); QScriptValue r10 = rxCtor.construct(QScriptValueList() << "" << "gim"); QVERIFY(r10.isRegExp()); - QEXPECT_FAIL("", "JSC: String representation of regexp with empty pattern is wrong", Continue); QCOMPARE(r10.toString(), QString::fromLatin1("/(?:)/gim")); QScriptValue r11 = rxCtor.construct(QScriptValueList() << "{1.*}" << "g"); |