summaryrefslogtreecommitdiff
path: root/test/style
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-05-16 13:44:12 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-05-17 11:23:47 -0700
commit786707649a2efcddd24fb976150b044097d74219 (patch)
treebdeaffb1b923d0c8f10ec11f8119fd2dff2b7db8 /test/style
parent63558e06ad4fbc33ad3bdec57dc0ead2b369a7b0 (diff)
downloadqtlocation-mapboxgl-786707649a2efcddd24fb976150b044097d74219.tar.gz
[core] Remove ambiguous get{Width,Height} accessors from style::Image
Diffstat (limited to 'test/style')
-rw-r--r--test/style/style_image.test.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/style/style_image.test.cpp b/test/style/style_image.test.cpp
index c535397be3..e49bf37582 100644
--- a/test/style/style_image.test.cpp
+++ b/test/style/style_image.test.cpp
@@ -35,18 +35,14 @@ TEST(StyleImage, ZeroRatio) {
TEST(StyleImage, Retina) {
style::Image image("test", PremultipliedImage({ 32, 24 }), 2.0);
- EXPECT_EQ(16, image.getWidth());
EXPECT_EQ(32u, image.getImage().size.width);
- EXPECT_EQ(12, image.getHeight());
EXPECT_EQ(24u, image.getImage().size.height);
EXPECT_EQ(2, image.getPixelRatio());
}
TEST(StyleImage, FractionalRatio) {
style::Image image("test", PremultipliedImage({ 20, 12 }), 1.5);
- EXPECT_EQ(float(20.0 / 1.5), image.getWidth());
EXPECT_EQ(20u, image.getImage().size.width);
- EXPECT_EQ(float(12.0 / 1.5), image.getHeight());
EXPECT_EQ(12u, image.getImage().size.height);
EXPECT_EQ(1.5, image.getPixelRatio());
}