diff options
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 98f81c4648..2684157840 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -3129,11 +3129,14 @@ void tst_qqmlecmascript::callQtInvokables() QCOMPARE(o->invoked(), -1); QCOMPARE(o->actuals().size(), 0); - o->reset(); - QVERIFY(EVALUATE_ERROR("object.method_QPointF(object)")); - QCOMPARE(o->error(), false); - QCOMPARE(o->invoked(), -1); - QCOMPARE(o->actuals().size(), 0); + // This fails if the QtQml module is loaded but works if it's not. + // If QtQml is loaded, QPointF is a structured value type that can be created from any object. + // + // o->reset(); + // QVERIFY(EVALUATE_ERROR("object.method_QPointF(object)")); + // QCOMPARE(o->error(), false); + // QCOMPARE(o->invoked(), -1); + // QCOMPARE(o->actuals().size(), 0); o->reset(); QVERIFY(EVALUATE_VALUE("object.method_QPointF(object.method_get_QPointF())", QV4::Primitive::undefinedValue())); |