RFR: 8287743: javax/swing/text/CSSBorder/6796710/bug6796710.java failed [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Jun 10 07:15:02 UTC 2022


On Fri, 10 Jun 2022 05:42:11 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> If I remember correctly, MRI will contain only one image captured by Robot, so it would return the only image it stores, which would not be scaled down if High DPI is in effect.
>> 
>> However, the test is supposed to run with `UIScale=1`, so this should make any difference.
>
> On the HiDPI screen that MRI will have two images, and my expectation is that the image requested by the updated test and the image used before the fix should be the same.

How to find those 2 bufferedimages returned by `createMultiResolutionScreenCapture `and `createScreenCapture `are same or not apart from pixel check (which shows obviously they are not same and color differ by 1)?

-------------

PR: https://git.openjdk.org/jdk/pull/9011



More information about the client-libs-dev mailing list