diff options
author | Jiri Vanek <[email protected]> | 2012-09-24 17:05:41 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2012-09-24 17:05:41 +0200 |
commit | cf1f7e5aec4ec8a39d6e71d7367ca70891908397 (patch) | |
tree | 7fea3e1c0b97e82aae30aff08e1bb1b77c329137 /tests/reproducers/signed | |
parent | fc1ee10f943727271803fd3d4b33265175faa703 (diff) |
Added basic ClosingLIstener support, implementation and example
Diffstat (limited to 'tests/reproducers/signed')
4 files changed, 60 insertions, 4 deletions
diff --git a/tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned.html b/tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned.html index 6c6ac48..0cf865d 100644 --- a/tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned.html +++ b/tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned.html @@ -37,7 +37,7 @@ exception statement from your version. --> <html><head></head><body bgcolor="red"> <p> - <applet code="AppletTestSigned.class" archive="XslowXAppletTestSigned.jar" codebase="." width="100" height="100"> + <applet code="AppletTestSigned.class" archive="AppletTestSigned.jar" codebase="." width="100" height="100"> <param name="key1" value="value1"> <param name="key2" value="#value2"> </applet> diff --git a/tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned2.html b/tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned2.html new file mode 100644 index 0000000..6c6ac48 --- /dev/null +++ b/tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned2.html @@ -0,0 +1,46 @@ +<!-- + +This file is part of IcedTea. + +IcedTea is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +IcedTea is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with IcedTea; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. + + --> +<html><head></head><body bgcolor="red"> +<p> + <applet code="AppletTestSigned.class" archive="XslowXAppletTestSigned.jar" codebase="." width="100" height="100"> + <param name="key1" value="value1"> + <param name="key2" value="#value2"> + </applet> +</p> +</body> +</html> diff --git a/tests/reproducers/signed/AppletTestSigned/srcs/AppletTestSigned.java b/tests/reproducers/signed/AppletTestSigned/srcs/AppletTestSigned.java index 1d475a5..be7282d 100644 --- a/tests/reproducers/signed/AppletTestSigned/srcs/AppletTestSigned.java +++ b/tests/reproducers/signed/AppletTestSigned/srcs/AppletTestSigned.java @@ -48,6 +48,7 @@ public class AppletTestSigned extends Applet { try { Thread.sleep(n); System.out.println("AppletTestSigned killing himself after " + n + " ms of life"); + System.out.println("*** APPLET FINISHED ***"); System.exit(0); } catch (Exception ex) { } diff --git a/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java b/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java index 8c9e2e7..6622514 100644 --- a/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java +++ b/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java @@ -84,15 +84,24 @@ public class AppletTestSignedTests extends BrowserTest { @Test @TestInBrowsers(testIn = {Browsers.all}) - public void AppletTestSignedFirefoxTest() throws Exception { + public void AppletTestSignedFirefoxTestXslowX() throws Exception { ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { - ProcessResult pr = server.executeBrowser("/AppletTestSigned.html"); + ProcessResult pr = server.executeBrowser("/AppletTestSigned2.html"); evaluateSignedApplet(pr, false); - Assert.assertTrue(pr.wasTerminated); + //Assert.assertTrue(pr.wasTerminated); //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null } finally { ServerAccess.PROCESS_TIMEOUT = 20 * 1000; //back to normal } } + + @Test + @TestInBrowsers(testIn = {Browsers.all}) + public void AppletTestSignedFirefoxTest() throws Exception { + ProcessResult pr = server.executeBrowser("/AppletTestSigned.html", ServerAccess.AutoClose.CLOSE_ON_BOTH); + evaluateSignedApplet(pr, false); + //Assert.assertTrue(pr.wasTerminated); + //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null + } } |