On Wed, 16 Sep 2020 20:29:39 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> The test test/jdk/javax/swing/JPopupMenu/4966112/bug4966112.java fails for 
>> Mac OS X
>> with the error message Popup was not shown on FileChooser.
>> 
>> Popup doesn't appear for JFileChooser in MAC OS X platform so
>> skipping this test for Mac OS X.
>
> Why the popup does not show for this component? Why the filechooser on the 
> mac is so specific?

The test creates a JFileChooser and a popup and then click on the middle of the 
JFileChooser.

In case of MAC OS X the context popup doesn't work when clicking on the area 
where files are(the area with the scroll
bar) in the filechooser.

But context popup works when clicking on the other areas of the JFilechooser 
like
    1. Upper area where the directory link is given
    2. Below area where file format comboBox is there and the close and open 
buttons are there.
    3. Context popup doesn't work when clicking on the buttons(close, open) and 
the ComboBoxes

so the test fails because the context popup doesn't work when clicking the 
middle area of JFileChooser in mac os x.

There are two ways to make the test pass, one to omit the mac os x platform for 
JFilechooser part which i did in the PR.
second the click on the other areas of the filechooser when the context popup 
work for mac os x.

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

PR: https://git.openjdk.java.net/jdk/pull/204

Reply via email to