Skip to content

Commit

Permalink
print to system out on log change
Browse files Browse the repository at this point in the history
  • Loading branch information
azvegint committed Mar 15, 2024
1 parent 07cb0b8 commit 9a25fe0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/jdk/java/awt/regtesthelpers/PassFailJFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,7 @@ public static void forceFail(String reason) {
* @param message to log
*/
public static void log(String message) {
System.out.println("PassFailJFrame: " + message);
invokeOnEDTUncheckedException(() -> logArea.append(message + "\n"));
}

Expand All @@ -1090,6 +1091,7 @@ public static void log(String message) {
* {@link Builder#logArea()} or {@link Builder#logArea(int)}.
*/
public static void logClear() {
System.out.println("\nPassFailJFrame: log cleared\n");
invokeOnEDTUncheckedException(() -> logArea.setText(""));
}

Expand All @@ -1099,6 +1101,7 @@ public static void logClear() {
* @param text new text for the log area
*/
public static void logSet(String text) {
System.out.println("\nPassFailJFrame: log set to:\n" + text + "\n");
invokeOnEDTUncheckedException(() -> logArea.setText(text));
}

Expand Down

0 comments on commit 9a25fe0

Please sign in to comment.