> Test shows a Frame and then an application-modal Dialog, clicks at middle of > the frame and samples a pixel at dialog's center. > The frame should remain blocked and behind the modal dialog so expected pixel > color should be DIalog's GREEN color but fails in macos owing to minor color > difference `java.awt.Color[r=3,g=255,b=0] ` > so added a tolerance fix > but then found it fails 2 out of 50 iterations citing > java.awt.Color[r=0,g=0,b=255] due to race > so added a CountDownLatch to make it deterministic so that it waits for the > dialog to become focused/active before doing the click which passes for 100 > iterations > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Prasanta Sadhukhan has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits: - Merge master - Modify deprecated var - 8066259: [macosx] Possible regression: test/java/awt/Modal/ModalDialogOrderingTest/ModalDialogOrderingTest.java failure - 8066259: [macosx] Possible regression: test/java/awt/Modal/ModalDialogOrderingTest/ModalDialogOrderingTest.java failure ------------- Changes: https://git.openjdk.org/jdk/pull/32854/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32854&range=02 Stats: 32 lines in 2 files changed: 24 ins; 1 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/32854.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32854/head:pull/32854 PR: https://git.openjdk.org/jdk/pull/32854
