[core] Fix several bugs in AnnotationManager

This commit is contained in:
John Firebaugh
2017-05-31 08:45:33 -07:00
parent 74af076d40
commit f983c2716b
2 changed files with 18 additions and 6 deletions

View File

@@ -425,6 +425,12 @@ TEST(Annotations, VisibleFeatures) {
EXPECT_EQ(features.size(), ids.size());
}
TEST(Annotations, TopOffsetPixels) {
AnnotationTest test;
test.map.addAnnotationImage(namedMarker("default_marker"));
EXPECT_EQ(test.map.getTopOffsetPixelsForAnnotationImage("default_marker"), -28);
}
TEST(Annotations, DebugEmpty) {
// This test should render nothing, not even the tile borders. Tile borders are only rendered