From 43668028bbe8f6f5248b6d5a191cef3762261d75 Mon Sep 17 00:00:00 2001 From: dzmipt Date: Thu, 21 Dec 2023 16:19:26 +0100 Subject: [PATCH] add extra logging for test issue debugging --- src/studio/ui/QGrid.java | 2 ++ test-integration/studio/ui/ResultTest.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/studio/ui/QGrid.java b/src/studio/ui/QGrid.java index 06910dcb..8a489df8 100755 --- a/src/studio/ui/QGrid.java +++ b/src/studio/ui/QGrid.java @@ -189,6 +189,7 @@ public void stateChanged(ChangeEvent ev) { private long lastTimestamp = -1; public void mousePressed(MouseEvent e) { + log.info("mousePressed: popupTrigger: {}", e.isPopupTrigger()); if (maybeShowPopup(e)) return; int row = table.rowAtPoint(e.getPoint()); @@ -206,6 +207,7 @@ else if (row == lastRow && col == lastCol && } public void mouseReleased(MouseEvent e) { + log.info("mouseReleased: popupTrigger: {}", e.isPopupTrigger()); maybeShowPopup(e); } diff --git a/test-integration/studio/ui/ResultTest.java b/test-integration/studio/ui/ResultTest.java index 8c57a215..45169628 100644 --- a/test-integration/studio/ui/ResultTest.java +++ b/test-integration/studio/ui/ResultTest.java @@ -2,6 +2,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.assertj.swing.core.KeyPressInfo; import org.assertj.swing.data.TableCell; import org.assertj.swing.fixture.*; import org.assertj.swing.hierarchy.SingleComponentHierarchy; @@ -17,6 +18,8 @@ import java.io.PrintStream; import java.util.Arrays; +import static java.awt.event.KeyEvent.VK_ESCAPE; + public class ResultTest extends StudioTest { private static final Logger log = LogManager.getLogger();