From 5ecd63b1cca2292eb55eb5b01daeb568dfed153b Mon Sep 17 00:00:00 2001 From: BobHanson Date: Mon, 23 Mar 2020 11:12:09 -0500 Subject: [PATCH] JAL-3253 JAL-3260 SeqCanvasTest.java should be working but it makes no sense that just adding System.out messages would make it do so. ????? --- test/jalview/gui/SeqCanvasTest.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/jalview/gui/SeqCanvasTest.java b/test/jalview/gui/SeqCanvasTest.java index 4588c5c..a670eda 100644 --- a/test/jalview/gui/SeqCanvasTest.java +++ b/test/jalview/gui/SeqCanvasTest.java @@ -378,19 +378,15 @@ public class SeqCanvasTest AlignmentI al = av.getAlignment(); assertEquals(al.getWidth(), 157); assertEquals(al.getHeight(), 15); - String ss = ""; av.getRanges().setStartEndSeq(0, 3); - + int h = av.getRanges().getVisibleAlignmentHeight(); String s = ""; s += " SC1 " + av.getRanges().getVisibleAlignmentHeight() + " " + 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(); @@ -405,7 +401,7 @@ public class SeqCanvasTest s += " SC5 " + av.getRanges(); int repeatingHeight = (int) PA.getValue(testee, "wrappedRepeatHeightPx"); - assertEquals(av.getRanges().getEndSeq(), 0, "endSeq should be 3 " + s); // unchanged + assertEquals(av.getRanges().getEndSeq(), 3, "endSeq should be 3 " + s); // unchanged assertEquals(repeatingHeight, charHeight * (2 + al.getHeight())); } } -- 1.7.10.2