changeset 359:324c54e484c1 draft

Fixed object types.
author ptisnovs
date Thu, 15 May 2014 15:17:50 +0200
parents 3c0edf5a83fc
children 7ec0f5310ca5
files ChangeLog src/org/RhinoTests/ScriptContextTest.java
diffstat 2 files changed, 14 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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@redhat.com>
+
+	* src/org/RhinoTests/ScriptContextTest.java:
+	Fixed object types.
+
 2014-05-15  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* 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");