<Swing Dev> RFR: 7151826: [TEST_BUG] [macosx] The test javax/swing/JPopupMenu/4966112/bug4966112.java not for mac
Tejpal Rebari
trebari at openjdk.java.net
Thu Sep 17 13:19:39 UTC 2020
On Wed, 16 Sep 2020 20:29:39 GMT, Sergey Bylokhov <serb at 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
More information about the swing-dev
mailing list