From 98d7c6c0436db04ac8fa7d13be472df8546760fe Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 27 Mar 2020 10:05:35 +0000 Subject: [PATCH] JAL-3562 paranoid print out of tested values during wait suspect a platform issue making result different --- test/jalview/gui/AlignmentPanelTest.java | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/test/jalview/gui/AlignmentPanelTest.java b/test/jalview/gui/AlignmentPanelTest.java index d0be072..a2107b7 100644 --- a/test/jalview/gui/AlignmentPanelTest.java +++ b/test/jalview/gui/AlignmentPanelTest.java @@ -64,14 +64,30 @@ public class AlignmentPanelTest { try { - wait(270); + int lw = -1, lwnow = -1; + for (int q = 0; q < 50; q++) + { + int w = af.alignPanel.getVisibleIdWidth(true); + int wnow = af.alignPanel.getIdPanel().getWidth(); + if (lw != w || wnow != lwnow) + { + System.out.println("Width " + w + " idpanel width " + wnow); + } + else + { + wait(1); + } + lw = w; + lwnow = wnow; + } } catch (InterruptedException e) { } } while (af.getViewport().isCalcInProgress() - || Toolkit.getDefaultToolkit().getSystemEventQueue() - .peekEvent() != null - || !af.alignPanel.isValid()); + || (Toolkit.getDefaultToolkit().getSystemEventQueue() + .peekEvent() != null) + || !af.alignPanel.isValid() + || af.getViewport().getConsensusSeq() == null); } } -- 1.7.10.2