summaryrefslogtreecommitdiff
path: root/test/api/annotations.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-01-04 12:29:38 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-01-08 13:23:01 +0100
commit7e815aed2e6adb73b3596b450bb85e93ce569e2a (patch)
tree0cc3e0e02c61bbc934e00bc642991011cc99ec1d /test/api/annotations.cpp
parent4479f5db6c1ce26bc187a1b5a938f4bdb45915d4 (diff)
downloadqtlocation-mapboxgl-7e815aed2e6adb73b3596b450bb85e93ce569e2a.tar.gz
[test] allow aborting rendering after a timeout
Diffstat (limited to 'test/api/annotations.cpp')
-rw-r--r--test/api/annotations.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/api/annotations.cpp b/test/api/annotations.cpp
index 2c6bfdb679..1b088b52c5 100644
--- a/test/api/annotations.cpp
+++ b/test/api/annotations.cpp
@@ -19,11 +19,15 @@ std::shared_ptr<SpriteImage> namedMarker(const std::string &name) {
return std::make_shared<SpriteImage>(image.width, image.height, 1.0, std::string(reinterpret_cast<char*>(image.data.get()), image.size()));
}
+namespace {
+
void checkRendering(Map& map, const char * name) {
test::checkImage(std::string("test/fixtures/annotations/") + name + "/",
test::render(map), 0.0002, 0.1);
}
+} // end namespace
+
TEST(Annotations, PointAnnotation) {
auto display = std::make_shared<mbgl::HeadlessDisplay>();
HeadlessView view(display, 1);