From: hansonr Date: Wed, 28 Aug 2019 05:12:34 +0000 (-0500) Subject: JAL-3253-applet JAL-3423 Windows TestNG X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=14d7fc7b354d68634fdb65c20ace15741a5b685f;p=jalview.git JAL-3253-applet JAL-3423 Windows TestNG SeqPanelTest error only in batch mode --- diff --git a/test/jalview/gui/SeqPanelTest.java b/test/jalview/gui/SeqPanelTest.java index 17e04bf..53b4259 100644 --- a/test/jalview/gui/SeqPanelTest.java +++ b/test/jalview/gui/SeqPanelTest.java @@ -766,7 +766,8 @@ public class SeqPanelTest int w = seqCanvas.getWidth(); // limited to number of whole columns, base 0 int expected = w / charWidth - 1; - assertEquals(testee.findColumn(evt), expected); + int col = testee.findColumn(evt); + assertEquals(col, expected); /* * hide columns 5-10 (base 1) @@ -776,7 +777,8 @@ public class SeqPanelTest // x is in 6th visible column, absolute column 12, or 11 base 0 evt = new MouseEvent(testee, Event.MOUSE_MOVE, 0L, 0, x, 0, 0, 0, 0, false, 0); - assertEquals(testee.findColumn(evt), 11); + col = testee.findColumn(evt); + assertEquals(col, 11); } @Test(groups = "Functional")