/hg/rhino-tests: Fixed object types.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu May 15 13:17:58 UTC 2014
changeset 324c54e484c1 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=324c54e484c1
author: ptisnovs
date: Thu May 15 15:17:50 2014 +0200
Fixed object types.
diffstat:
ChangeLog | 5 +++++
src/org/RhinoTests/ScriptContextTest.java | 18 +++++++++---------
2 files changed, 14 insertions(+), 9 deletions(-)
diffs (96 lines):
diff -r 3c0edf5a83fc -r 324c54e484c1 ChangeLog
--- a/ChangeLog Thu May 15 13:41:19 2014 +0200
+++ b/ChangeLog Thu May 15 15:17:50 2014 +0200
@@ -1,3 +1,8 @@
+2014-05-15 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/ScriptContextTest.java:
+ Fixed object types.
+
2014-05-15 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptContextTest.java:
diff -r 3c0edf5a83fc -r 324c54e484c1 src/org/RhinoTests/ScriptContextTest.java
--- a/src/org/RhinoTests/ScriptContextTest.java Thu May 15 13:41:19 2014 +0200
+++ b/src/org/RhinoTests/ScriptContextTest.java Thu May 15 15:17:50 2014 +0200
@@ -81,7 +81,7 @@
*/
protected void testSetAttribute1() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute("name", "value", ScriptContext.ENGINE_SCOPE);
}
@@ -96,7 +96,7 @@
*/
protected void testSetAttribute2() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute("name", "", ScriptContext.ENGINE_SCOPE);
}
@@ -111,7 +111,7 @@
*/
protected void testSetAttribute3() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute("name", null, ScriptContext.ENGINE_SCOPE);
}
@@ -126,7 +126,7 @@
*/
protected void testSetAttribute4() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute("", "value", ScriptContext.ENGINE_SCOPE);
throw new AssertionError("ScriptContext.setAttribute(\"\", \"value\", ScriptContext.ENGINE_SCOPE.) does not throw any exception");
@@ -141,7 +141,7 @@
*/
protected void testSetAttribute5() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute("", "", ScriptContext.ENGINE_SCOPE);
throw new AssertionError("ScriptContext.setAttribute(\"\", \"\", ScriptContext.ENGINE_SCOPE) does not throw any exception");
@@ -156,7 +156,7 @@
*/
protected void testSetAttribute6() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute("", null, ScriptContext.ENGINE_SCOPE);
throw new AssertionError("ScriptContext.setAttribute(\"\", null, ScriptContext.ENGINE_SCOPE) does not throw any exception");
@@ -171,7 +171,7 @@
*/
protected void testSetAttribute7() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute(null, "value", ScriptContext.ENGINE_SCOPE);
throw new AssertionError("ScriptContext.setAttribute(null, \"value\", ScriptContext.ENGINE_SCOPE) does not throw any exception");
@@ -186,7 +186,7 @@
*/
protected void testSetAttribute8() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute(null, "", ScriptContext.ENGINE_SCOPE);
throw new AssertionError("ScriptContext.setAttribute(null, \"\", ScriptContext.ENGINE_SCOPE) does not throw any exception");
@@ -201,7 +201,7 @@
*/
protected void testSetAttribute9() {
// tested object
- SimpleScriptContext object = new SimpleScriptContext();
+ ScriptContext object = new SimpleScriptContext();
try {
object.setAttribute(null, null, ScriptContext.ENGINE_SCOPE);
throw new AssertionError("ScriptContext.setAttribute(null, null, ScriptContext.ENGINE_SCOPE) does not throw any exception");
More information about the distro-pkg-dev
mailing list