RFR: 8318841: macOS: Memory leak with MenuItem when Menu.useSystemMenuBar(true) is used
Johan Vos
jvos at openjdk.org
Mon Nov 6 19:23:39 UTC 2023
On Mon, 6 Nov 2023 13:20:32 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
> > > Is it possible to add an automated regression test?
> >
> >
> > I'm working on that, but it is not trivial as this functionality requires the QuantumToolkit and can not use the StubToolkit which is used in most tests.
>
> You could add a headful system test (those all use the QuantumToolkit). You may or may not want it to be a robot-based test, depending on what else you want the test to do (e.g., a robot-based test could click outside the window, which deactivates the window and calls the release methods).
I added a test to the existing SystemMenuBarTest in the system tests that fails before and succeeds after the patch. Note that the app needs focus for this test.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1277#issuecomment-1796114161
More information about the openjfx-dev
mailing list