From c283043e722466142d026609ab2599ece6eac247 Mon Sep 17 00:00:00 2001 From: Michael Hoisie Date: Tue, 24 Jan 2023 22:18:07 -0800 Subject: [PATCH] Remove references to 'robolectric.nativeruntime.enableGraphics' This system property was only used during the development of Robolectric Native Graphics (RNG). Now that RNG code has been merged upstream to GitHub, the graphics mode can be checked directly. PiperOrigin-RevId: 504464649 --- .../glide/load/resource/bitmap/TransformationUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/test/src/test/java/com/bumptech/glide/load/resource/bitmap/TransformationUtilsTest.java b/library/test/src/test/java/com/bumptech/glide/load/resource/bitmap/TransformationUtilsTest.java index 01bc7d3b81..2ddea80612 100644 --- a/library/test/src/test/java/com/bumptech/glide/load/resource/bitmap/TransformationUtilsTest.java +++ b/library/test/src/test/java/com/bumptech/glide/load/resource/bitmap/TransformationUtilsTest.java @@ -358,7 +358,7 @@ public void testRotateImage() { Bitmap ninety = TransformationUtils.rotateImage(toRotate, 90); // Checks if native graphics is enabled. - if (Boolean.getBoolean("robolectric.nativeruntime.enableGraphics")) { + if (System.getProperty("robolectric.graphicsMode", "").equals("NATIVE")) { assertThat(ninety.getPixel(0, 0)).isEqualTo(Color.RED); assertThat(ninety.getPixel(1, 0)).isEqualTo(Color.BLUE); } else {