AlignFrame af = new FileLoader().LoadFileWaitTillLoaded(exampleFile,
DataSourceType.FILE);
assertNotNull(af, "Didn't read in the example file correctly.");
+ AlignmentPanel origView = (AlignmentPanel) af.getAlignPanels().get(0);
AlignmentPanel newview = af.newView(PCAVIEWNAME, true);
// create another for good measure
af.newView("Not the PCA View", true);
- PCAPanel pcaPanel = new PCAPanel(newview, "BLOSUM62",
+ PCAPanel pcaPanel = new PCAPanel(origView, "BLOSUM62",
new SimilarityParams(true, true, true, false));
-
// we're in the test exec thread, so we can just run synchronously here
pcaPanel.run();
+ // now switch the linked view
+ pcaPanel.selectAssociatedView(newview);
+
assertTrue(pcaPanel.getAlignViewport() == newview.getAlignViewport(),
"PCA should be associated with 'With PCA' view: test is broken");