aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-06-21 14:01:21 +0200
committerLars Knoll <lars.knoll@digia.com>2013-06-21 14:11:48 +0200
commit5a59ca0d22b303789db9732c0dcae362bf2baf79 (patch)
treeb56b127519e086a0e9a4903bcce117da7b0ec46e /tests
parentd6fef5e9a9c5cf4a5d9b72c8efc5e351f462266d (diff)
Remove XFAILs that was due to strict mode
In non-strict mode we can use with() and eval() again, and so these tests pass. Change-Id: I66b16653a28b1d7e420e53c012d7908c8fc6c29a Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
index f910baa5b9..8817751565 100644
--- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
+++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
@@ -5744,7 +5744,6 @@ void tst_qqmlecmascript::eval()
QObject *o = component.create();
QVERIFY(o != 0);
- QEXPECT_FAIL("", "The eval statement works differently in strict mode", Abort);
QCOMPARE(o->property("test1").toBool(), true);
QCOMPARE(o->property("test2").toBool(), true);
QCOMPARE(o->property("test3").toBool(), true);
@@ -6690,16 +6689,10 @@ void tst_qqmlecmascript::withStatement()
{
{
QUrl url = testFileUrl("withStatement.1.qml");
- QString warning = url.toString() + ":12:1: 'with' statement is not allowed in strict mode";
- QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData());
- warning = url.toString() + ":12:12: Unable to assign [undefined] to int";
- QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData());
-
QQmlComponent component(&engine, url);
MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
QVERIFY(object != 0);
- QEXPECT_FAIL("", "The with statement is not allowed in strict mode", Abort);
QCOMPARE(object->value(), 123);
}
}