git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
561472b
)
JAL-3341 debug for failing unit test
bug/JAL-3341unitTestFails
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 28 Jan 2020 15:18:12 +0000
(15:18 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 28 Jan 2020 15:18:12 +0000
(15:18 +0000)
test/jalview/gui/SeqPanelTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/gui/SeqPanelTest.java
b/test/jalview/gui/SeqPanelTest.java
index
cd0b594
..
a03819d
100644
(file)
--- 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);
}