Skip to content

Commit 62f94bb

Browse files
committedApr 3, 2025
8353620: Make some systems tests robust for Ubuntu 24.04
Reviewed-by: kcr
1 parent 1a65f4c commit 62f94bb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎tests/system/src/test/java/test/robot/javafx/scene/MenuDoubleShortcutTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -115,6 +115,7 @@ void nonMacMenuBarComesBeforeScene() {
115115

116116
@Test
117117
void acceleratorOnlyInMenuBar() {
118+
Util.sleep(delayMilliseconds);
118119
testApp.testKey(menuBarOnlyKeyCode);
119120
Util.sleep(delayMilliseconds);
120121
TestResult result = testApp.testResult();

‎tests/system/src/test/java/test/robot/javafx/stage/KeyEventClosesStageTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -66,6 +66,7 @@ public class KeyEventClosesStageTest {
6666
@BeforeAll
6767
public static void initFX() throws Exception {
6868
Util.launch(startupLatch, TestApp.class);
69+
Util.sleep(200);
6970

7071
// When run from the command line Windows does not want to
7172
// activate the window.

‎tests/system/src/test/java/test/robot/javafx/web/TextSelectionTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public void beforeEach() {
7171
@Timeout(value=20)
7272
public void testTextSelection() {
7373

74+
Util.sleep(200);
7475
int x = (int)(scene.getWindow().getX() + scene.getX() + 22);
7576
int y = (int)(scene.getWindow().getY() + scene.getY() + 15);
7677

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Apr 3, 2025

@openjdk-notifier[bot]
Please sign in to comment.