summaryrefslogtreecommitdiff
path: root/tests/auto/qaxscriptmanager/tst_qaxscriptmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qaxscriptmanager/tst_qaxscriptmanager.cpp')
-rw-r--r--tests/auto/qaxscriptmanager/tst_qaxscriptmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qaxscriptmanager/tst_qaxscriptmanager.cpp b/tests/auto/qaxscriptmanager/tst_qaxscriptmanager.cpp
index 7d9a36e..5c92bdf 100644
--- a/tests/auto/qaxscriptmanager/tst_qaxscriptmanager.cpp
+++ b/tests/auto/qaxscriptmanager/tst_qaxscriptmanager.cpp
@@ -172,9 +172,14 @@ void tst_QAxScriptManager::call()
QVERIFY(axScript->scriptEngine()->hasIntrospection());
}
+ // QAxScriptManager::call finds the script based on function name...
+ for (const auto &function : std::as_const(functions)) {
+ QVariant result = scriptManager.call(function);
+ QCOMPARE(result.metaType(), QMetaType::fromType<QString>());
+ }
+ // ...or fully qualified function signature
for (const auto &function : std::as_const(signatures)) {
QVariant result = scriptManager.call(function);
- QEXPECT_FAIL("", "QAxScriptManager::call is broken", Continue);
QCOMPARE(result.metaType(), QMetaType::fromType<QString>());
}
}