ok, looks good to me
Pankaj
On 25/06/20 4:48 PM, Prasanta Sadhukhan wrote:
It is intentional as this is a headless test so nothing is being shown
but to get a feel of why it fails when it fails, I have added the
bufferedimage save.
Regards
Prasanta
On 25-Jun-20 11:39 AM, Pankaj Bansal wrote:
Hello Prasanta,
I see that you have saved the image before throwing a exception. Is
this intentional or you were using it for debugging and forgot to
remove it?
Regards,
Pankaj
On 24/06/20 8:29 PM, Prasanta Sadhukhan wrote:
Hi All,
Please review a test only fix for an issue seen in ubuntu linux 20.04.
The test draws "AOB" with and without underline underneath and then
looks to try to calculate the midpoint of "O" and then expects to see
the transition
from top to bottom of bg->fg->bg->fg->bg as you get when you cross the
path of the O twice. When there is underline, it expects 6 transition
from top of O till it passes the underline in form of
bg->fg->bg->fg->bg->fg->bg and when there is no underline, it
expects 4 transitions.
However, it is seen that the string width of AOB is calculated to be
59 whereas the Bufferedimage width is hardcoded to 50 resulting in
-ve x (which is calculated as 50-59/2)
Proposed fix is to always draw at x=0 coordinate instead of using
the calculated x. Also, the x corodinate passed to check function is
modified a liitle depending on whether we are testing underline or not.
Proposed fix pass in all platforms and the mach5 job link is present
in JBS.
Bug:https://bugs.openjdk.java.net/browse/JDK-8248187
webrev:http://cr.openjdk.java.net/~psadhukhan/8248187/webrev.0/
Regards
Prasanta