From: kjvdheide Date: Tue, 3 Oct 2017 10:21:56 +0000 (+0100) Subject: Clarified test a little X-Git-Tag: Release_2_11_1_0~96^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ae668892295ec84b52d9298be5e5f7f223dd5437;p=jalview.git Clarified test a little --- diff --git a/test/jalview/gui/ValidColumnSelectionTest.java b/test/jalview/gui/ValidColumnSelectionTest.java index c65f236..217fcdd 100644 --- a/test/jalview/gui/ValidColumnSelectionTest.java +++ b/test/jalview/gui/ValidColumnSelectionTest.java @@ -40,7 +40,11 @@ public class ValidColumnSelectionTest ); scalePanel.mousePressed(mouse); scalePanel.mouseDragged(mouse); + + // simulate dragging selection leftwards beyond the sequences giving + // negative X mouse = new MouseEvent(scalePanel, 0, 1, 0, -30, 0, 1, false); + scalePanel.mouseReleased(mouse); SequenceGroup sg = scalePanel.av.getSelectionGroup();