forked from qt-creator/qt-creator
QmlDesigner: Add more tests for getting type
Task-number: QDS-7327 Change-Id: Ic99e007ef1b38582505b087c982c4d775aed5075 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -5976,4 +5976,14 @@ TEST_F(ProjectStorage, GetType)
|
||||
ASSERT_THAT(type, Optional(IsInfoType(defaultPropertyId)));
|
||||
}
|
||||
|
||||
TEST_F(ProjectStorage, DontGetTypeForInvalidId)
|
||||
{
|
||||
auto package{createSimpleSynchronizationPackage()};
|
||||
storage.synchronize(package);
|
||||
|
||||
auto type = storage.type(TypeId());
|
||||
|
||||
ASSERT_THAT(type, Eq(Utils::nullopt));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user