diff options
author | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-05-12 23:19:00 +0300 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-05-12 13:19:00 -0700 |
commit | cc9f040a2d35293c51dcc5be9c7affea7f1263bd (patch) | |
tree | de62a5610e719f5bfe07226c3382d4d2a5e17530 /test/style | |
parent | c80f3e9d29d1c26ccc88ef30f8f17329c9bfb1b7 (diff) | |
download | qtlocation-mapboxgl-cc9f040a2d35293c51dcc5be9c7affea7f1263bd.tar.gz |
[core] Split style image collection from SpriteAtlas
Diffstat (limited to 'test/style')
-rw-r--r-- | test/style/style_image.test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/style/style_image.test.cpp b/test/style/style_image.test.cpp index 319120df83..34814bee88 100644 --- a/test/style/style_image.test.cpp +++ b/test/style/style_image.test.cpp @@ -36,17 +36,17 @@ TEST(StyleImage, ZeroRatio) { TEST(StyleImage, Retina) { style::Image image(PremultipliedImage({ 32, 24 }), 2.0); EXPECT_EQ(16, image.getWidth()); - EXPECT_EQ(32u, image.image.size.width); + EXPECT_EQ(32u, image.getImage().size.width); EXPECT_EQ(12, image.getHeight()); - EXPECT_EQ(24u, image.image.size.height); - EXPECT_EQ(2, image.pixelRatio); + EXPECT_EQ(24u, image.getImage().size.height); + EXPECT_EQ(2, image.getPixelRatio()); } TEST(StyleImage, FractionalRatio) { style::Image image(PremultipliedImage({ 20, 12 }), 1.5); EXPECT_EQ(float(20.0 / 1.5), image.getWidth()); - EXPECT_EQ(20u, image.image.size.width); + EXPECT_EQ(20u, image.getImage().size.width); EXPECT_EQ(float(12.0 / 1.5), image.getHeight()); - EXPECT_EQ(12u, image.image.size.height); - EXPECT_EQ(1.5, image.pixelRatio); + EXPECT_EQ(12u, image.getImage().size.height); + EXPECT_EQ(1.5, image.getPixelRatio()); } |