JDK-8308608 : [testbug] Use Util::waitForIdle instead of Toolkit::firePulse in system tests
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2023-05-23
  • Updated: 2023-09-15
  • Resolved: 2023-09-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx22 b08Fixed
Related Reports
Relates :  
Description
In ChoiceBoxScrollUpOnCollectionChangeTest and ContextMenuNPETest, Toolkit::firePulse is used. This might artificially alter the control flow. Hence use Util::waitForIdle to trigger and wait for required number of pulses.
Comments
Changeset: 8fcd6e5e Author: Karthik P K <kpk@openjdk.org> Date: 2023-09-06 16:23:40 +0000 URL: https://git.openjdk.org/jfx/commit/8fcd6e5e55967810ec2acd3dcc9b47bae5c70350
06-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/1230 Date: 2023-09-04 10:47:02 +0000
04-09-2023

One thing to note when fixing this test bug: Util::waitForIdle must not be called on the JavaFX application thread (it needs to be called on the test thread).
23-05-2023