forked from organicmaps/organicmaps
[styles] Fix tests to skip the merged style
This commit is contained in:
parent
152e509fb2
commit
959f30505d
3 changed files with 10 additions and 3 deletions
|
@ -42,9 +42,12 @@ namespace
|
|||
for (size_t s = 0; s < MapStyleCount; ++s)
|
||||
{
|
||||
MapStyle const mapStyle = static_cast<MapStyle>(s);
|
||||
GetStyleReader().SetCurrentStyle(mapStyle);
|
||||
LOG(LINFO, ("Test with map style", mapStyle));
|
||||
fn();
|
||||
if (mapStyle != MapStyle::MapStyleMerged)
|
||||
{
|
||||
GetStyleReader().SetCurrentStyle(mapStyle);
|
||||
LOG(LINFO, ("Test with map style", mapStyle));
|
||||
fn();
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
|
|
@ -19,6 +19,8 @@ UNIT_TEST(Test_Dashes)
|
|||
for (size_t s = 0; s < MapStyleCount; ++s)
|
||||
{
|
||||
MapStyle const mapStyle = static_cast<MapStyle>(s);
|
||||
if (mapStyle == MapStyleMerged)
|
||||
continue;
|
||||
|
||||
GetStyleReader().SetCurrentStyle(mapStyle);
|
||||
classificator::Load();
|
||||
|
|
|
@ -73,6 +73,8 @@ UNIT_TEST(Test_SymbolsConsistency)
|
|||
for (size_t s = 0; s < MapStyleCount; ++s)
|
||||
{
|
||||
MapStyle const mapStyle = static_cast<MapStyle>(s);
|
||||
if (mapStyle == MapStyleMerged)
|
||||
continue;
|
||||
|
||||
GetStyleReader().SetCurrentStyle(mapStyle);
|
||||
classificator::Load();
|
||||
|
|
Loading…
Add table
Reference in a new issue