summaryrefslogtreecommitdiff
path: root/test/style
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-01-07 18:51:19 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-01-15 17:04:08 +0100
commita88e58ef3a90225fcfafca1efab996de6a827b72 (patch)
tree925d68e81c26b918b3c6aa4c31f4e33ce50fbb82 /test/style
parent32a2359e86bc86221682f1afa057b62f0f0be8c2 (diff)
downloadqtlocation-mapboxgl-a88e58ef3a90225fcfafca1efab996de6a827b72.tar.gz
[core] use stale glyphs
Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
Diffstat (limited to 'test/style')
-rw-r--r--test/style/glyph_store.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/style/glyph_store.cpp b/test/style/glyph_store.cpp
index a53b20c6d2..0215dff3ff 100644
--- a/test/style/glyph_store.cpp
+++ b/test/style/glyph_store.cpp
@@ -52,7 +52,6 @@ TEST(GlyphStore, LoadingSuccess) {
return;
auto fontStack = test.glyphStore.getFontStack("Test Stack");
- ASSERT_FALSE(fontStack->getMetrics().empty());
ASSERT_FALSE(fontStack->getSDFs().empty());
test.end();
@@ -73,7 +72,6 @@ TEST(GlyphStore, LoadingFail) {
ASSERT_EQ(glyphRange, GlyphRange(0, 255));
auto stack = test.glyphStore.getFontStack("Test Stack");
- ASSERT_TRUE(stack->getMetrics().empty());
ASSERT_TRUE(stack->getSDFs().empty());
ASSERT_FALSE(test.glyphStore.hasGlyphRanges("Test Stack", {{0, 255}}));
@@ -95,7 +93,6 @@ TEST(GlyphStore, LoadingCorrupted) {
ASSERT_EQ(glyphRange, GlyphRange(0, 255));
auto stack = test.glyphStore.getFontStack("Test Stack");
- ASSERT_TRUE(stack->getMetrics().empty());
ASSERT_TRUE(stack->getSDFs().empty());
ASSERT_FALSE(test.glyphStore.hasGlyphRanges("Test Stack", {{0, 255}}));
@@ -132,7 +129,6 @@ TEST(GlyphStore, InvalidURL) {
ASSERT_TRUE(error != nullptr);
auto stack = test.glyphStore.getFontStack("Test Stack");
- ASSERT_TRUE(stack->getMetrics().empty());
ASSERT_TRUE(stack->getSDFs().empty());
test.end();