From: Jim Procter Date: Sat, 27 May 2017 13:00:49 +0000 (+0100) Subject: JAL-2563 test to verify SetStatus returns -1 so mouseOver events are raised via Struc... X-Git-Tag: Release_2_10_2~3^2~66^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7e8d1bd277e419ab179992f3e20e34bcc8d62f26;p=jalview.git JAL-2563 test to verify SetStatus returns -1 so mouseOver events are raised via StructureSelectionManager (JAL-2491, expected fixed by JAL-2547) --- diff --git a/test/jalview/gui/SeqPanelTest.java b/test/jalview/gui/SeqPanelTest.java index b7dc250..210dcf3 100644 --- a/test/jalview/gui/SeqPanelTest.java +++ b/test/jalview/gui/SeqPanelTest.java @@ -43,13 +43,14 @@ public class SeqPanelTest @Test(groups = "Functional") public void testSetStatusReturnsPosOrMinusOne() { - SequenceI seq1 = new Sequence("Seq1", "ABCDEFGHIJ"); - SequenceI seq2 = new Sequence("Seq2", "AB--EFGHIJ"); + SequenceI seq1 = new Sequence("Seq1", "AACDE"); + SequenceI seq2 = new Sequence("Seq2", "AA--E"); AlignmentI al = new Alignment(new SequenceI[] { seq1, seq2 }); AlignFrame alignFrame = new AlignFrame(al, al.getWidth(), al.getHeight()); AlignmentI visAl = alignFrame.getViewport().getAlignment(); // Test either side of gap + // This first assert fails due to JAL-2563 assertEquals( alignFrame.alignPanel.getSeqPanel().setStatusMessage( visAl.getSequenceAt(1), 1, 1), 2);