diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-29 17:27:16 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-31 16:53:07 +0200 |
commit | a70bfd89108cf1aef75181819ae43e550a69255e (patch) | |
tree | 158af7ab005cb4edcb788b4d87c9396e7add4c4d /test/api | |
parent | f03afdee218680d95eb5b9b0ab04083bc7cea512 (diff) | |
download | qtlocation-mapboxgl-a70bfd89108cf1aef75181819ae43e550a69255e.tar.gz |
[core] Don't use GL_LINEAR if panning w/o rotation nor pitch
Diffstat (limited to 'test/api')
-rw-r--r-- | test/api/annotations.test.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/api/annotations.test.cpp b/test/api/annotations.test.cpp index 06a0a61b0a..be71ba85c9 100644 --- a/test/api/annotations.test.cpp +++ b/test/api/annotations.test.cpp @@ -49,6 +49,7 @@ TEST(Annotations, SymbolAnnotation) { auto screenBox = ScreenBox { {}, { double(size.width), double(size.height) } }; auto features = test.map.queryPointAnnotations(screenBox); EXPECT_EQ(features.size(), 1u); + test.checkRendering("point_annotation"); test.map.setZoom(test.map.getMaxZoom()); test.checkRendering("point_annotation"); @@ -57,6 +58,21 @@ TEST(Annotations, SymbolAnnotation) { EXPECT_EQ(features.size(), 1u); } +TEST(Annotations, SymbolLinearInterpolation) +{ + AnnotationTest test; + + test.map.setStyleJSON(util::read_file("test/fixtures/api/empty.json")); + test.map.addAnnotationIcon("default_marker", namedMarker("default_marker.png")); + test.map.addAnnotation(SymbolAnnotation { Point<double>(0.15, 0.15), "default_marker" }); + test.checkRendering("point_annotation"); + + // Should not trigger GL_LINEAR when binding the symbol shader. + test.map.setGestureInProgress(true); + test.map.moveBy({}); + test.checkRendering("point_annotation"); +} + TEST(Annotations, LineAnnotation) { AnnotationTest test; |