From 1dab7652c8e85071f68f5a4889e071d6a480ae80 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Mon, 23 Mar 2020 10:11:30 -0500 Subject: [PATCH] Bamboo test #4 (possibly) - intentional SeqCanvasTest fail for debugging --- test/jalview/gui/SeqCanvasTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/jalview/gui/SeqCanvasTest.java b/test/jalview/gui/SeqCanvasTest.java index d192998..445be13 100644 --- a/test/jalview/gui/SeqCanvasTest.java +++ b/test/jalview/gui/SeqCanvasTest.java @@ -380,10 +380,16 @@ public class SeqCanvasTest assertEquals(al.getHeight(), 15); String ss = ""; av.getRanges().setStartEndSeq(0, 3); + + String s = ""; + s += " SC1 " + av.getRanges(); av.setShowAnnotation(false); + s += " SC2 " + av.getRanges(); av.setScaleAboveWrapped(true); + s += " SC3 " + av.getRanges(); SeqCanvas testee = af.alignPanel.getSeqPanel().seqCanvas; av.setWrapAlignment(true); + s += " SC4 " + av.getRanges(); av.setFont(new Font("SansSerif", Font.PLAIN, 14), true); int charHeight = av.getCharHeight(); int charWidth = av.getCharWidth(); @@ -394,10 +400,11 @@ public class SeqCanvasTest int canvasWidth = 400; int canvasHeight = 300; testee.calculateWrappedGeometry(canvasWidth, canvasHeight); + + s += " SC5 " + av.getRanges(); int repeatingHeight = (int) PA.getValue(testee, "wrappedRepeatHeightPx"); - assertEquals(av.getRanges().getEndSeq(), 3, - "endSeq should be 3"); // unchanged + assertEquals(av.getRanges().getEndSeq(), 0, "endSeq should be 3 " + s); // unchanged assertEquals(repeatingHeight, charHeight * (2 + al.getHeight())); } } -- 1.7.10.2