aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <j-p.nurmi@nokia.com>2012-09-06 17:03:36 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-07 13:57:13 +0200
commit35e302241e329402bb84c01c9cb7095e1c08df53 (patch)
treef01b2f62a38aefea9f8b7291d20ee03f4cc0313d /tests
parentb129882e5931981abd315ed42736bbab5cea8472 (diff)
Updated tst_QJSEngine
Replaced several QSKIP() instances with QEXPECT_FAIL() and removed execScript from the list global object properties as it has been removed from V8: http://codereview.chromium.org/7046002/ Task-number: QTBUG-27169 Change-Id: I28bbb38971ad80551ec24285a321e545db44a79d Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qjsengine/tst_qjsengine.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/auto/qml/qjsengine/tst_qjsengine.cpp b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
index 3faa0f5f3e..02d6dbc32a 100644
--- a/tests/auto/qml/qjsengine/tst_qjsengine.cpp
+++ b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
@@ -290,16 +290,17 @@ void tst_QJSEngine::newVariant_valueOfToString()
void tst_QJSEngine::newRegExp()
{
- QSKIP("Test failing - QTBUG-22238");
QJSEngine eng;
QJSValue rexp = eng.toScriptValue(QRegExp("foo"));
QVERIFY(!rexp.isUndefined());
QCOMPARE(rexp.isRegExp(), true);
QCOMPARE(rexp.isObject(), true);
+ QEXPECT_FAIL("", "QTBUG-27169", Continue);
QVERIFY(rexp.isCallable()); // in JSC, RegExp objects are callable
// prototype should be RegExp.prototype
QVERIFY(!rexp.prototype().isUndefined());
QCOMPARE(rexp.prototype().isObject(), true);
+ QEXPECT_FAIL("", "QTBUG-27169", Continue);
QCOMPARE(rexp.prototype().isRegExp(), false);
QCOMPARE(rexp.prototype().strictlyEquals(eng.evaluate("RegExp.prototype")), true);
@@ -308,8 +309,6 @@ void tst_QJSEngine::newRegExp()
void tst_QJSEngine::jsRegExp()
{
- QSKIP("Test failing - QTBUG-22238");
-
// See ECMA-262 Section 15.10, "RegExp Objects".
// These should really be JS-only tests, as they test the implementation's
// ECMA-compliance, not the C++ API. Compliance should already be covered
@@ -341,7 +340,6 @@ void tst_QJSEngine::jsRegExp()
// This is different from SpiderMonkey and old back-end.
QVERIFY(!r5.strictlyEquals(r));
- QEXPECT_FAIL("", "V8 and jsc ignores invalid flags", Continue); //https://bugs.webkit.org/show_bug.cgi?id=41614
QJSValue r6 = rxCtor.callAsConstructor(QJSValueList() << "foo" << "bar");
QVERIFY(r6.isError());
// QVERIFY(r6.toString().contains(QString::fromLatin1("SyntaxError"))); // Invalid regular expression flag
@@ -355,7 +353,9 @@ void tst_QJSEngine::jsRegExp()
// JSC doesn't complain about duplicate flags.
QJSValue r8 = eng.evaluate("/foo/migmigmig");
+ QEXPECT_FAIL("", "QTBUG-27169", Continue);
QVERIFY(r8.isRegExp());
+ QEXPECT_FAIL("", "QTBUG-27169", Continue);
QCOMPARE(r8.toString(), QString::fromLatin1("/foo/gim"));
QJSValue r9 = rxCtor.callAsConstructor();
@@ -526,7 +526,6 @@ void tst_QJSEngine::newQObject_deletedEngine()
void tst_QJSEngine::globalObjectProperties()
{
- QSKIP("Test failing - QTBUG-22238");
// See ECMA-262 Section 15.1, "The Global Object".
QJSEngine eng;
@@ -587,7 +586,6 @@ void tst_QJSEngine::globalObjectEquals()
void tst_QJSEngine::globalObjectProperties_enumerate()
{
- QSKIP("Test failing - QTBUG-22238");
QJSEngine eng;
QJSValue global = eng.globalObject();
@@ -625,8 +623,6 @@ void tst_QJSEngine::globalObjectProperties_enumerate()
<< "undefined"
// JavaScriptCore
<< "JSON"
- // V8
- << "execScript" //execScript for IE compatibility.
;
QSet<QString> actualNames;
{
@@ -2609,7 +2605,6 @@ void tst_QJSEngine::qRegExpInport_data()
void tst_QJSEngine::qRegExpInport()
{
- QSKIP("Test failing - QTBUG-22238");
QFETCH(QRegExp, rx);
QFETCH(QString, string);
@@ -2618,6 +2613,7 @@ void tst_QJSEngine::qRegExpInport()
rexp = eng.toScriptValue(rx);
QCOMPARE(rexp.isRegExp(), true);
+ QEXPECT_FAIL("", "QTBUG-27169", Continue);
QVERIFY(rexp.isCallable());
QJSValue func = eng.evaluate("(function(string, regexp) { return string.match(regexp); })");