diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-01-07 18:51:19 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-01-15 17:04:08 +0100 |
commit | a88e58ef3a90225fcfafca1efab996de6a827b72 (patch) | |
tree | 925d68e81c26b918b3c6aa4c31f4e33ce50fbb82 /test/style | |
parent | 32a2359e86bc86221682f1afa057b62f0f0be8c2 (diff) | |
download | qtlocation-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.cpp | 4 |
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(); |