Skip to content

Commit c283043

Browse files
hoisieglide-copybara-robot
authored andcommittedJan 25, 2023
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
1 parent 5e7c91a commit c283043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/test/src/test/java/com/bumptech/glide/load/resource/bitmap/TransformationUtilsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public void testRotateImage() {
358358

359359
Bitmap ninety = TransformationUtils.rotateImage(toRotate, 90);
360360
// Checks if native graphics is enabled.
361-
if (Boolean.getBoolean("robolectric.nativeruntime.enableGraphics")) {
361+
if (System.getProperty("robolectric.graphicsMode", "").equals("NATIVE")) {
362362
assertThat(ninety.getPixel(0, 0)).isEqualTo(Color.RED);
363363
assertThat(ninety.getPixel(1, 0)).isEqualTo(Color.BLUE);
364364
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.