On Fri, 7 Oct 2022 21:15:02 GMT, Sergey Bylokhov <[email protected]> wrote:
>> java/awt/PopupMenu/PopupMenuLocation.java seems to be unstable in MacOS
>> machines, especially in MacOSX 12 & 13 machines. It seems to be a testbug as
>> adding some stability improvements fixes the issue. It intermittently fails
>> in CI causing some noise. This test was already problem listed in windows
>> due to an umbrella bug JDK-8238720. This fix doesn't cover the Windows
>> issue, so the problem listing in windows will remain same.
>>
>> Fix:
>> Some stability improvements have been done and the test has been run 100
>> times per platform in mach5 and got full PASS.
>
> test/jdk/java/awt/PopupMenu/PopupMenuLocation.java line 148:
>
>> 146: try {
>> 147: ImageIO.write(robot.createScreenCapture(
>> 148: new Rectangle(0, 0, screenSize.width,
>> screenSize.height)),
>
> This may capture the default screen while the frame is currently visible on
> another one.
But, is there any way we can capture the current screen where the frame is
displayed?
-------------
PR: https://git.openjdk.org/jdk/pull/10606