git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1767 patch buggy PCA view association test
[jalview.git]
/
test
/
jalview
/
project
/
Jalview2xmlTests.java
diff --git
a/test/jalview/project/Jalview2xmlTests.java
b/test/jalview/project/Jalview2xmlTests.java
index
a0f1f6d
..
fb2d3e9
100644
(file)
--- a/
test/jalview/project/Jalview2xmlTests.java
+++ b/
test/jalview/project/Jalview2xmlTests.java
@@
-1151,7
+1151,14
@@
public class Jalview2xmlTests extends Jalview2xmlBase
"PCA and the tabbed alignment view should be the only two windows on the desktop");
PCAPanel pcaPanel = (PCAPanel) frames[frames[0] == af ? 1 : 0];
"PCA and the tabbed alignment view should be the only two windows on the desktop");
PCAPanel pcaPanel = (PCAPanel) frames[frames[0] == af ? 1 : 0];
- AlignmentViewPanel restoredNewView = af.getAlignPanels().get(1);
+ AlignmentViewPanel restoredNewView = null;
+ for (AlignmentViewPanel alignpanel : Desktop.getAlignmentPanels(null))
+ {
+ if (alignpanel.getAlignViewport() == pcaPanel.getAlignViewport())
+ {
+ restoredNewView = alignpanel;
+ }
+ }
assertEquals(restoredNewView.getViewName(), PCAVIEWNAME);
assertTrue(
restoredNewView.getAlignViewport() == pcaPanel
assertEquals(restoredNewView.getViewName(), PCAVIEWNAME);
assertTrue(
restoredNewView.getAlignViewport() == pcaPanel