Skip to content

Commit d877cf1

Browse files
committed
8361530: Test javax/swing/GraphicsConfigNotifier/StalePreferredSize.java timed out
Backport-of: eb9e04598db7a70347ada005035644012026f902
1 parent 9010fd8 commit d877cf1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

test/jdk/javax/swing/GraphicsConfigNotifier/StalePreferredSize.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 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,9 +66,8 @@
6666
* It is checked by SwingUtilities.updateComponentTreeUI(), if layout
6767
* was correct the call to updateComponentTreeUI() will be no-op.
6868
* @compile -encoding utf-8 StalePreferredSize.java
69-
* @run main/othervm/timeout=600 StalePreferredSize
70-
* @run main/othervm/timeout=600 -Dsun.java2d.uiScale=1 StalePreferredSize
71-
* @run main/othervm/timeout=600 -Dsun.java2d.uiScale=2.25 StalePreferredSize
69+
* @run main/othervm/timeout=420 StalePreferredSize
70+
* @run main/othervm/timeout=420 -Dsun.java2d.uiScale=2.25 StalePreferredSize
7271
*/
7372
public final class StalePreferredSize {
7473

@@ -92,7 +91,7 @@ public final class StalePreferredSize {
9291
public static void main(final String[] args) throws Exception {
9392
for (final UIManager.LookAndFeelInfo laf : getInstalledLookAndFeels()) {
9493
EventQueue.invokeAndWait(() -> setLookAndFeel(laf));
95-
for (typeFont = 0; typeFont < 3; typeFont++) {
94+
for (typeFont = 0; typeFont < 1; typeFont++) {
9695
System.err.println("typeFont = " + typeFont);
9796
for (boolean usePopup : new boolean[]{true, false}) {
9897
addViaPopup = usePopup;

0 commit comments

Comments
 (0)