From 416f3bcbd98380f18b8ea5b5124e088e81387cb8 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 28 Jan 2020 15:18:12 +0000 Subject: [PATCH] JAL-3341 debug for failing unit test --- test/jalview/gui/SeqPanelTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/jalview/gui/SeqPanelTest.java b/test/jalview/gui/SeqPanelTest.java index cd0b594..a03819d 100644 --- a/test/jalview/gui/SeqPanelTest.java +++ b/test/jalview/gui/SeqPanelTest.java @@ -570,7 +570,12 @@ public class SeqPanelTest evt = new MouseEvent(testee, MouseEvent.MOUSE_MOVED, 0L, 0, x, y, 0, 0, 0, false, 0); pos = testee.findMousePosition(evt); - assertEquals(pos.seqIndex, alignmentHeight - 1); + SeqCanvas sc = testee.seqCanvas; + assertEquals(pos.seqIndex, alignmentHeight - 1, + String.format("%s n=%d y=%d %d, %d, %d, %d", + annotationRows[n].label, n, y, sc.getWidth(), + sc.getHeight(), sc.wrappedRepeatHeightPx, + sc.wrappedSpaceAboveAlignment)); assertEquals(pos.annotationIndex, n); } -- 1.7.10.2