JDK-8212897 : Some improvements in the EditorPaneDemotest
  • Type: Task
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-10-24
  • Updated: 2019-12-24
  • Resolved: 2018-10-25
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.
JDK 11 JDK 12
11.0.7-oracleFixed 12 b18Fixed
Description
1) In Nimbus L&F, background color is not white, but in the JEditorPane, always it will be white background if image is not available. 
So change the pixel color check to white instead of background color. 
2) Adding assertNotBlack check for captured image, otherwise test will pass whole image is black also.
Comments
Fix request (11u) I would like to downport this for parity with 11.0.7-oracle. Applies clean.
23-12-2019