[styles] Fix tests to skip the merged style

This commit is contained in:
Ilya Zverev 2016-01-19 12:11:54 +03:00
parent 152e509fb2
commit 959f30505d
3 changed files with 10 additions and 3 deletions

View file

@ -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

View file

@ -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();

View file

@ -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();