From: James Procter Date: Wed, 15 Feb 2023 14:43:32 +0000 (+0000) Subject: Passing test for JAL-4127 failing on the JAL-1713 branch X-Git-Tag: Release_2_11_3_0~18^2~15^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=164a8192345f622c2f9c62d3b0c6e593b5f08af4;p=jalview.git Passing test for JAL-4127 failing on the JAL-1713 branch --- diff --git a/test/jalview/project/Jalview2xmlTests.java b/test/jalview/project/Jalview2xmlTests.java index 8886394..0cc993e 100644 --- a/test/jalview/project/Jalview2xmlTests.java +++ b/test/jalview/project/Jalview2xmlTests.java @@ -1359,4 +1359,25 @@ public class Jalview2xmlTests extends Jalview2xmlBase assertTrue(dbRef instanceof GeneLocus); assertEquals(dbRef, dbref3); } + + /** + * Test that loading example.jvp, doing some stuff, then hitting reload + * doesn't leave the modified window still open + * + * @throws Exception + */ + @Test(groups = { "Functional" }, enabled = true) + public void testReloadActuallyReloads() throws Exception + { + Desktop.instance.closeAll_actionPerformed(null); + AlignFrame af = new FileLoader().LoadFileWaitTillLoaded( + "examples/exampleFile.jvp", DataSourceType.FILE); + af.getViewport().getColumnSelection().addElement(3); + af.hideSelColumns_actionPerformed(null); + af.newView("new", true); + af.reload_actionPerformed(null); + Thread.sleep(30); + // af exists still but isn't shown + assertTrue(af.isClosed()); + } }