/hg/rhino-tests: Added four new tests into the test suite src/or...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Wed Nov 28 03:36:07 PST 2012


changeset 4ecf9a7bcab2 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=4ecf9a7bcab2
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Nov 28 12:39:06 2012 +0100

	Added four new tests into the test suite src/org/RhinoTests/CompilableTest.java.


diffstat:

 ChangeLog                              |   5 +++
 src/org/RhinoTests/CompilableTest.java |  48 ++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 0 deletions(-)

diffs (70 lines):

diff -r b67b5f8f811b -r 4ecf9a7bcab2 ChangeLog
--- a/ChangeLog	Tue Nov 27 09:59:10 2012 +0100
+++ b/ChangeLog	Wed Nov 28 12:39:06 2012 +0100
@@ -1,3 +1,8 @@
+2012-11-28  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/CompilableTest.java:
+	Added four new tests.
+
 2012-11-27  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/CompiledScriptTest.java:
diff -r b67b5f8f811b -r 4ecf9a7bcab2 src/org/RhinoTests/CompilableTest.java
--- a/src/org/RhinoTests/CompilableTest.java	Tue Nov 27 09:59:10 2012 +0100
+++ b/src/org/RhinoTests/CompilableTest.java	Wed Nov 28 12:39:06 2012 +0100
@@ -220,6 +220,54 @@
     }
 
     /**
+     * Test if it is possible to compile and then run script from a string.
+     * 
+     * @throws ScriptException
+     *             this exception is thrown when this test case failed.
+     */
+    protected void testCompileAndRunSimpleScriptStoredInString2() throws ScriptException {
+        CompiledScript script = getCompiledScript(JavaScriptSnippets.EMPTY_SCRIPT_2);
+        Object result = script.eval();
+        assertNull(result, "result should be null");
+    }
+
+    /**
+     * Test if it is possible to compile and then run script from a string.
+     * 
+     * @throws ScriptException
+     *             this exception is thrown when this test case failed.
+     */
+    protected void testCompileAndRunSimpleScriptStoredInString3() throws ScriptException {
+        CompiledScript script = getCompiledScript(JavaScriptSnippets.EMPTY_SCRIPT_3);
+        Object result = script.eval();
+        assertNull(result, "result should be null");
+    }
+
+    /**
+     * Test if it is possible to compile and then run script from a string.
+     * 
+     * @throws ScriptException
+     *             this exception is thrown when this test case failed.
+     */
+    protected void testCompileAndRunSimpleScriptStoredInString4() throws ScriptException {
+        CompiledScript script = getCompiledScript(JavaScriptSnippets.EMPTY_SCRIPT_4);
+        Object result = script.eval();
+        assertNull(result, "result should be null");
+    }
+
+    /**
+     * Test if it is possible to compile and then run script from a string.
+     * 
+     * @throws ScriptException
+     *             this exception is thrown when this test case failed.
+     */
+    protected void testCompileAndRunSimpleScriptStoredInString5() throws ScriptException {
+        CompiledScript script = getCompiledScript(JavaScriptSnippets.EMPTY_SCRIPT_5);
+        Object result = script.eval();
+        assertNull(result, "result should be null");
+    }
+
+    /**
      * Entry point to this test case.
      *
      * @param args parameters passed from command line



More information about the distro-pkg-dev mailing list