From 786707649a2efcddd24fb976150b044097d74219 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 16 May 2017 13:44:12 -0700 Subject: [core] Remove ambiguous get{Width,Height} accessors from style::Image --- test/style/style_image.test.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'test/style') 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()); } -- cgit v1.2.1