From 14d7fc7b354d68634fdb65c20ace15741a5b685f Mon Sep 17 00:00:00 2001 From: hansonr Date: Wed, 28 Aug 2019 00:12:34 -0500 Subject: [PATCH] JAL-3253-applet JAL-3423 Windows TestNG SeqPanelTest error only in batch mode --- test/jalview/gui/SeqPanelTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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") -- 1.7.10.2