summaryrefslogtreecommitdiff
path: root/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp')
-rw-r--r--tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp b/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
index 9706901..c6fab3d 100644
--- a/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
+++ b/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
@@ -1533,7 +1533,6 @@ void tst_QScriptExtQObject::callQtInvokable4()
QCOMPARE(m_myObject->qtFunctionInvoked(), 63);
QCOMPARE(m_myObject->qtFunctionActuals().size(), 1);
QVariant v = m_myObject->qtFunctionActuals().at(0);
- QCOMPARE(v.userType(), int(QMetaType::QWidgetStar));
QCOMPARE(qvariant_cast<QWidget*>(v), (QObject *)0);
}
@@ -1702,7 +1701,7 @@ void tst_QScriptExtQObject::callQtInvokable5()
{
QScriptValue ret = m_engine->evaluate("myObject.myInvokableReturningMyQObject()");
QCOMPARE(m_myObject->qtFunctionInvoked(), 53);
- QVERIFY(ret.isVariant());
+ QVERIFY(ret.isQObject());
QCOMPARE(*reinterpret_cast<MyQObject* const *>(ret.toVariant().constData()), m_myObject);
}