Skip to content

Commit

Permalink
add extra logging for test issue debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmipt committed Dec 21, 2023
1 parent d6be34e commit 4366802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/studio/ui/QGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -206,6 +207,7 @@ else if (row == lastRow && col == lastCol &&
}

public void mouseReleased(MouseEvent e) {
log.info("mouseReleased: popupTrigger: {}", e.isPopupTrigger());
maybeShowPopup(e);
}

Expand Down
3 changes: 3 additions & 0 deletions test-integration/studio/ui/ResultTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 4366802

Please sign in to comment.