-
Bug
-
Resolution: Fixed
-
P4
-
8, jfx19
The system test CustomSecurityManagerTest fails on a Mac M1:
CustomSecurityManagerTest > testFullScreenAfterPermissiveSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
CustomSecurityManagerTest > testFullScreenInitPermissiveSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
CustomSecurityManagerTest > testFullScreenInitNoSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
CustomSecurityManagerTest > testFullScreenAfterNoSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
This is because we are trying to sample too close to the edge, outside the visible screen bounds (it is a full screen test). Since all we care about is whether ot not we went into full screen, the easiest fix is to move away from the edges.
CustomSecurityManagerTest > testFullScreenAfterPermissiveSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
CustomSecurityManagerTest > testFullScreenInitPermissiveSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
CustomSecurityManagerTest > testFullScreenInitNoSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
CustomSecurityManagerTest > testFullScreenAfterNoSecurityManager FAILED
junit.framework.AssertionFailedError: expected:rgba(0,255,0,255) but was:rgba(0,0,0,255)
at test.robot.testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:183)
at test.robot.helloworld.CustomSecurityManagerTest.lambda$doTestFullScreenCommon$6(CustomSecurityManagerTest.java:203)
This is because we are trying to sample too close to the edge, outside the visible screen bounds (it is a full screen test). Since all we care about is whether ot not we went into full screen, the easiest fix is to move away from the edges.