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();
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()));
}
}