From ec60264ef3fc40b2edd23b446a36f6562b2f33a1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 23 Sep 2020 16:39:51 +0100 Subject: [PATCH] JAL-3748 more tests verifying reconstruction of AlignemntView for linked CDS/Protein alignment and selected region --- test/jalview/gui/SplitFrameTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/jalview/gui/SplitFrameTest.java b/test/jalview/gui/SplitFrameTest.java index f0ea255..f9ef572 100644 --- a/test/jalview/gui/SplitFrameTest.java +++ b/test/jalview/gui/SplitFrameTest.java @@ -158,7 +158,7 @@ public class SplitFrameTest // splitframe construction AlignmentI complementDs = requestedBy.getSplitViewContainer() .getComplement(requestedBy).getDataset(); - assertTrue(dnaAf.getViewport().getAlignment().getDataset() == dnaAf + assertTrue(complementDs == dnaAf .getViewport().getAlignment().getDataset()); assertTrue(complementDs == proteinAf.getViewport().getAlignment() .getDataset()); @@ -181,5 +181,10 @@ public class SplitFrameTest // check shape is as expected assertEquals(copyComplement.getWidth(), result.getWidth() * 3); assertEquals(copyComplement.getHeight(), result.getHeight()); + // specific bug with this set - see same CDS for all distinct products + assertTrue( + !copyComplement.getSequenceAt(0).getSequenceAsString().equals( + copyComplement.getSequenceAt(1).getSequenceAsString()), + "Didn't reconstruct CDS correctly"); } } -- 1.7.10.2