forked from organicmaps/organicmaps
Added test for broken bookmarks file
This commit is contained in:
parent
0fe7f9806a
commit
5630a77074
2 changed files with 7 additions and 0 deletions
0
data/broken_bookmarks.kmb.test
Normal file
0
data/broken_bookmarks.kmb.test
Normal file
|
@ -955,3 +955,10 @@ UNIT_CLASS_TEST(Runner, Bookmarks_AutoSave)
|
|||
TEST(my::DeleteFileX(fileName), ());
|
||||
TEST(my::DeleteFileX(fileName2), ());
|
||||
}
|
||||
|
||||
UNIT_CLASS_TEST(Runner, Bookmarks_BrokenFile)
|
||||
{
|
||||
string const fileName = GetPlatform().TestsDataPathForFile("broken_bookmarks.kmb.test");
|
||||
auto kmlData = LoadKmlFile(fileName, true /* useBinary */);
|
||||
TEST(kmlData == nullptr, ());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue