Skip to content

Commit

Permalink
Remove references to 'robolectric.nativeruntime.enableGraphics'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hoisie authored and glide-copybara-robot committed Jan 25, 2023
1 parent 5e7c91a commit c283043
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c283043

Please sign in to comment.