On Tue, 28 Jun 2022 05:53:47 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

> > Are you sure? It has macOS specific code added as part of the 
> > https://bugs.openjdk.org/browse/JDK-8196096
> 
> It deproblemlist it for windows. macos specific code was added to check for 
> heavyweight poup in non-macos platform which we dont have for macos for which 
> have existing bug [JDK-7184956](https://bugs.openjdk.org/browse/JDK-7184956)

That code was not added, it was excluded from executing on macOS. And as the 
reason for that excluded code the 
[JDK-7184956](https://bugs.openjdk.org/browse/JDK-7184956) was referenced. But 
current failure is different. On my system it fails due to wrong "frame" 
location, it jumps from the "expected" location. In Swing that expected 
location is calculated by the JPopupMenu.adjustPopupLocationToFitScreen so we 
can mimic that logic in the test. Or we can test the large menu to check that 
the popup overlaps the dock.

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

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

Reply via email to