From: gmungoc Date: Tue, 28 Jan 2020 15:18:12 +0000 (+0000) Subject: JAL-3341 debug for failing unit test X-Git-Tag: Release_2_11_1_1~31 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=416f3bcbd98380f18b8ea5b5124e088e81387cb8;hp=561472b407c20a9d0a49cd5e87b624e325407751;p=jalview.git JAL-3341 debug for failing unit test --- 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); }