aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java
diff options
context:
space:
mode:
authorAdam Domurad <[email protected]>2012-10-16 16:55:52 -0400
committerAdam Domurad <[email protected]>2012-10-16 16:55:52 -0400
commite8179b90818824c3c1d18776aad1e1cc4da0912c (patch)
tree9fc3d4fe1ef3bf8d5a8f699e41320ee04717dbd7 /tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java
parenta9cb003f0307fdf937f9d1f310b0b9fa36f451b8 (diff)
Add automatic closing to AppletTakesLastParam browser test
Diffstat (limited to 'tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java')
-rw-r--r--tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java23
1 files changed, 4 insertions, 19 deletions
diff --git a/tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java b/tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java
index 9d2b44d..6650bed 100644
--- a/tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java
+++ b/tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java
@@ -38,26 +38,11 @@ obligated to do so. If you do not wish to do so, delete this
exception statement from your version.
*/
public class AppletTakesLastParam extends Applet {
-
- private class Killer extends Thread {
-
- public int n = 2000;
-
- @Override
- public void run() {
- try {
- Thread.sleep(n);
- System.out.println("Applet killing itself after " + n + " ms");
- System.exit(0);
- } catch (Exception ex) {
- }
- }
- }
- private Killer killer = new Killer();
-
- @Override
public void init() {
System.out.println(getParameter("param"));
- killer.start();
+ System.out.println("*** APPLET FINISHED ***");
+
+ // Exits JNLP-launched applets, throws exception on normal applet:
+ System.exit(0);
}
}