aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp b/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
index 5cf1e06ed5..c0fa508acf 100644
--- a/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
+++ b/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
@@ -884,6 +884,10 @@ void tst_qqmlmetatype::renameMetaType()
// But the name is different
QCOMPARE_NE(newTypeName, metaTypeName);
+
+ // The QMetaType registry has been updated
+ QCOMPARE(QMetaType::fromName(newTypeName), metaType);
+ QVERIFY(!QMetaType::fromName(metaTypeName).isValid());
}
}