aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-06-06 16:57:14 +0200
committerJiri Vanek <[email protected]>2013-06-06 16:57:14 +0200
commitb88f1e63c7a8eb23ec4ec27726d2fe6a9968f1d6 (patch)
tree7c60b990a117be4fb5c31723499613cdd686aec2 /tests
parent11fd7b8b63735365f41cb34133daf29c295d749a (diff)
Silenced deployment.properties and zero size applet exceptions with tests
Diffstat (limited to 'tests')
-rw-r--r--tests/reproducers/simple/AppletTest/resources/appletZeroH.html44
-rw-r--r--tests/reproducers/simple/AppletTest/resources/appletZeroW.html44
-rw-r--r--tests/reproducers/simple/AppletTest/resources/appletZeroWH.html44
-rw-r--r--tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java27
4 files changed, 158 insertions, 1 deletions
diff --git a/tests/reproducers/simple/AppletTest/resources/appletZeroH.html b/tests/reproducers/simple/AppletTest/resources/appletZeroH.html
new file mode 100644
index 0000000..b3f6a0f
--- /dev/null
+++ b/tests/reproducers/simple/AppletTest/resources/appletZeroH.html
@@ -0,0 +1,44 @@
+<!--
+
+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="blue">
+<p><applet code="AppletTest.class" archive="AppletTest.jar" codebase="." width="800" height="0">
+ <param name="key1" value="value1">
+ <param name="key2" value="#value2">
+</applet></p>
+</body>
+</html>
diff --git a/tests/reproducers/simple/AppletTest/resources/appletZeroW.html b/tests/reproducers/simple/AppletTest/resources/appletZeroW.html
new file mode 100644
index 0000000..e97fe0b
--- /dev/null
+++ b/tests/reproducers/simple/AppletTest/resources/appletZeroW.html
@@ -0,0 +1,44 @@
+<!--
+
+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="blue">
+<p><applet code="AppletTest.class" archive="AppletTest.jar" codebase="." width="0" height="600">
+ <param name="key1" value="value1">
+ <param name="key2" value="#value2">
+</applet></p>
+</body>
+</html>
diff --git a/tests/reproducers/simple/AppletTest/resources/appletZeroWH.html b/tests/reproducers/simple/AppletTest/resources/appletZeroWH.html
new file mode 100644
index 0000000..aaec64c
--- /dev/null
+++ b/tests/reproducers/simple/AppletTest/resources/appletZeroWH.html
@@ -0,0 +1,44 @@
+<!--
+
+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="blue">
+<p><applet code="AppletTest.class" archive="AppletTest.jar" codebase="." width="0" height="0">
+ <param name="key1" value="value1">
+ <param name="key2" value="#value2">
+</applet></p>
+</body>
+</html>
diff --git a/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java b/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java
index a51021f..75e19f4 100644
--- a/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java
+++ b/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java
@@ -1,4 +1,4 @@
-/* AppletTestTests.java
+/*
Copyright (C) 2011 Red Hat, Inc.
This file is part of IcedTea.
@@ -154,4 +154,29 @@ public class AppletTestTests extends BrowserTest {
ServerAccess.PROCESS_TIMEOUT = 20 * 1000; //back to normal
}
}
+
+
+ @Test
+ @TestInBrowsers(testIn = {Browsers.one})
+ @NeedsDisplay
+ public void appletZeroWH() throws Exception {
+ ProcessResult pr = server.executeBrowser("/appletZeroWH.html", new CountingClosingListenerImpl(), new CountingClosingListenerImpl());
+ evaluateApplet(pr, false);
+ }
+
+ @Test
+ @TestInBrowsers(testIn = {Browsers.one})
+ @NeedsDisplay
+ public void appletZeroW() throws Exception {
+ ProcessResult pr = server.executeBrowser("/appletZeroW.html", new CountingClosingListenerImpl(), new CountingClosingListenerImpl());
+ evaluateApplet(pr, false);
+ }
+
+ @Test
+ @TestInBrowsers(testIn = {Browsers.one})
+ @NeedsDisplay
+ public void appletZeroH() throws Exception {
+ ProcessResult pr = server.executeBrowser("/appletZeroH.html", new CountingClosingListenerImpl(), new CountingClosingListenerImpl());
+ evaluateApplet(pr, false);
+ }
}