JAL-3253-applet headless branch - just experimenting.
[jalview.git] / test / jalview / project / Jalview2xmlTests.java
index 830a759..c2fa989 100644 (file)
@@ -1167,7 +1167,8 @@ public class Jalview2xmlTests extends Jalview2xmlBase
     // desktop
     assertEquals(frames.length, 2,
             "PCA and the tabbed alignment view should be the only two windows on the desktop");
-    PCAPanel pcaPanel = (PCAPanel) frames[frames[0] == af ? 1 : 0];
+    PCAPanel pcaPanel = (PCAPanel) frames[frames[0] == af.getIFrame() ? 1
+            : 0];
 
     AlignmentViewPanel restoredNewView = null;
     for (AlignmentViewPanel alignpanel : Desktop.getAlignmentPanels(null))