From ae668892295ec84b52d9298be5e5f7f223dd5437 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 3 Oct 2017 11:21:56 +0100 Subject: [PATCH] Clarified test a little --- test/jalview/gui/ValidColumnSelectionTest.java | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 1.7.10.2