mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 01:44:28 +08:00
Update release
This commit is contained in:
@@ -225,12 +225,11 @@ Ptr<GuiResource> GacUIUnitTest_CompileAndLoad(const WString& xmlResource)
|
||||
GuiResourceError::List errors;
|
||||
{
|
||||
auto resourcePath = (GetUnitTestFrameworkConfig().resourceFolder / L"Resource.xml").GetFullPath();
|
||||
auto resourceFolder = GetUnitTestFrameworkConfig().resourceFolder.GetFullPath();
|
||||
auto parser = GetParserManager()->GetParser<glr::xml::XmlDocument>(L"XML");
|
||||
auto xml = parser->Parse({ WString::Empty,resourcePath }, xmlResource, errors);
|
||||
CHECK_ERROR(xml && errors.Count() == 0, ERROR_MESSAGE_PREFIX L"Failed to parse XML resource.");
|
||||
|
||||
resource = GuiResource::LoadFromXml(xml, resourcePath, resourceFolder, errors);
|
||||
resource = GuiResource::LoadFromXml(xml, resourcePath, GetFolderPath(resourcePath), errors);
|
||||
CHECK_ERROR(resource && errors.Count() == 0, ERROR_MESSAGE_PREFIX L"Failed to load XML resource.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user