/hg/rhino-tests: Updated one test case in ScriptExceptionClassTest.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Sep 27 00:42:10 PDT 2013
changeset 1bdd275b1a8d in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=1bdd275b1a8d
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Sep 27 09:45:37 2013 +0200
Updated one test case in ScriptExceptionClassTest.
diffstat:
ChangeLog | 5 +
src/org/RhinoTests/ScriptExceptionClassTest.java | 64 ++++++++++++++++++++++++
2 files changed, 69 insertions(+), 0 deletions(-)
diffs (93 lines):
diff -r a69643cea0a5 -r 1bdd275b1a8d ChangeLog
--- a/ChangeLog Thu Sep 26 09:54:36 2013 +0200
+++ b/ChangeLog Fri Sep 27 09:45:37 2013 +0200
@@ -1,3 +1,8 @@
+2013-09-27 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/ScriptExceptionClassTest.java:
+ Updated one test case in ScriptExceptionClassTest.
+
2013-09-26 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptEngineClassTest.java:
diff -r a69643cea0a5 -r 1bdd275b1a8d src/org/RhinoTests/ScriptExceptionClassTest.java
--- a/src/org/RhinoTests/ScriptExceptionClassTest.java Thu Sep 26 09:54:36 2013 +0200
+++ b/src/org/RhinoTests/ScriptExceptionClassTest.java Fri Sep 27 09:45:37 2013 +0200
@@ -1366,6 +1366,30 @@
}
try {
+ this.scriptExceptionClass.asSubclass(java.lang.String.class);
+ throw new AssertionError("Class.asSubclass(java.lang.String.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.scriptExceptionClass.asSubclass(java.lang.StringBuffer.class);
+ throw new AssertionError("Class.asSubclass(java.lang.StringBuffer.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.scriptExceptionClass.asSubclass(java.lang.StringBuilder.class);
+ throw new AssertionError("Class.asSubclass(java.lang.StringBuilder.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
this.scriptExceptionClass.asSubclass(java.awt.Color.class);
throw new AssertionError("Class.asSubclass(java.awt.Color.class) does not throw any exception");
}
@@ -1381,6 +1405,46 @@
// expected exception
}
+ try {
+ this.scriptExceptionClass.asSubclass(java.awt.Image.class);
+ throw new AssertionError("Class.asSubclass(java.awt.Image.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.scriptExceptionClass.asSubclass(javax.swing.JPanel.class);
+ throw new AssertionError("Class.asSubclass(javax.swing.JPanel.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.scriptExceptionClass.asSubclass(javax.swing.JColorChooser.class);
+ throw new AssertionError("Class.asSubclass(javax.swing.JColorChooser.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.scriptExceptionClass.asSubclass(javax.swing.JScrollBar.class);
+ throw new AssertionError("Class.asSubclass(javax.swing.JScrollBar.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.scriptExceptionClass.asSubclass(javax.swing.JSlider.class);
+ throw new AssertionError("Class.asSubclass(javax.swing.JSlider.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
}
/**
More information about the distro-pkg-dev
mailing list