JDK-8087813 : Unit test failures in RegionBackgroundFillUITest
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2013-10-09
  • Updated: 2019-11-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
The following two unit tests fail on all platforms. These are part of the systemTests module and are run when FULL_TEST=true.

RegionBackgroundFillUITest.testScenario4 :

junit.framework.AssertionFailedError: not expected:rgba(0,0,255,255) but was:rgba(0,0,255,255)
	at testharness.VisualTestBase.assertColorDoesNotEqual(VisualTestBase.java:195)
	at javafx.scene.layout.RegionUITestBase.assertColorDoesNotEqual(RegionUITestBase.java:95)
	at javafx.scene.layout.RegionUITestBase.runTests(RegionUITestBase.java:374)
	at javafx.scene.layout.RegionUITestBase.checkRegionTopRightCorner(RegionUITestBase.java:294)
	at javafx.scene.layout.RegionUITestBase.checkRegionCornersAndBoundariesOfBackgroundFill(RegionUITestBase.java:353)
	at javafx.scene.layout.RegionUITestBase.checkRegionCornersAndBoundariesOfBackgroundFill(RegionUITestBase.java:346)
	at javafx.scene.layout.RegionUITestBase.checkRegionCornersAndBoundariesOfBackgroundFill(RegionUITestBase.java:342)
	at javafx.scene.layout.RegionBackgroundFillUITest.testScenario4(RegionBackgroundFillUITest.java:431)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:491)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28)


testScenario5RegionBackgroundFillUITest.testScenario5:

junit.framework.AssertionFailedError: not expected:rgba(0,0,255,255) but was:rgba(0,0,255,255)
	at testharness.VisualTestBase.assertColorDoesNotEqual(VisualTestBase.java:195)
	at javafx.scene.layout.RegionUITestBase.assertColorDoesNotEqual(RegionUITestBase.java:95)
	at javafx.scene.layout.RegionUITestBase.runTests(RegionUITestBase.java:374)
	at javafx.scene.layout.RegionUITestBase.checkRegionBottomRightCorner(RegionUITestBase.java:316)
	at javafx.scene.layout.RegionUITestBase.checkRegionCornersAndBoundariesOfBackgroundFill(RegionUITestBase.java:355)
	at javafx.scene.layout.RegionUITestBase.checkRegionCornersAndBoundariesOfBackgroundFill(RegionUITestBase.java:346)
	at javafx.scene.layout.RegionBackgroundFillUITest.testScenario5(RegionBackgroundFillUITest.java:466)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:491)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28)

Comments
On my system I'm also seeing testHalfPixel* tests failing. I'm running right now on Retina whereas before I was on a monitor. There might be some differences here to investigate. Some of these tests are borderline over-sensitive. The testHalfPixel tests for example are literally looking at blending on a single pixel level of precision, and this might be different from retina to non-retina. I'm just going to @Ignore these failing tests and retarget this issue to VanNess, where we need to spend some significant time on our testing
09-10-2013