From 291853c32e24a384e961f462425151bc6018907a Mon Sep 17 00:00:00 2001 From: denny Date: Thu, 19 Nov 2026 03:04:15 -0500 Subject: [PATCH] #2687 HistoryTableViewTest uses the platform copy shortcut so it passes on macOS HistoryTableView matches SHORTCUT_DOWN+C, which JavaFX maps to Cmd-C on macOS. The test always fired Ctrl-C, so the copy never triggered on the macOS CI runner and the clipboard assertion failed. The test now fires Meta-C on macOS and Ctrl-C elsewhere. Co-Authored-By: Claude Opus 5.5 --- .../github/dsheirer/gui/nowplaying/HistoryTableViewTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java b/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java index be9792ab7..4de26fefb 100644 --- a/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java +++ b/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java @@ -76,9 +76,11 @@ public class HistoryTableViewTest table.getSelectionModel().select(0); table.getSelectionModel().select(2); + //The copy shortcut is Cmd-C (meta) on macOS and Ctrl-C elsewhere + boolean mac = System.getProperty("os.name", "").toLowerCase().startsWith("mac"); Clipboard.getSystemClipboard().clear(); Event.fireEvent(table, new KeyEvent(KeyEvent.KEY_PRESSED, "", "", KeyCode.C, false, - true, false, false)); + !mac, false, mac)); copied.complete(Clipboard.getSystemClipboard().getString()); } catch(Throwable t)