java.lang.Object
org.apache.batik.test.AbstractTest
org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
org.apache.batik.script.rhino.ScriptSelfTest
- All Implemented Interfaces:
- org.apache.batik.test.Test
- public class ScriptSelfTest
- extends org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
Helper class to simplify writing the unitTesting.xml file for
scripting. The "id" for the test needs to be the path of the
selft contained SVG test, starting from:
/test-resources/org/apache/batik/
- Version:
- $Id: ScriptSelfTest.java,v 1.4 2005/04/01 02:28:16 deweese Exp $
| Fields inherited from class org.apache.batik.test.svg.SelfContainedSVGOnLoadTest |
ATTRIBUTE_KEY, ATTRIBUTE_RESULT, ATTRIBUTE_VALUE, ENTRY_KEY_ERROR_DESCRIPTION, ENTRY_KEY_NUMBER_OF_TEST_RESULT_ELEMENTS, ENTRY_KEY_RESULT_VALUE, ERROR_CANNOT_LOAD_SVG_DOCUMENT, ERROR_MISSING_OR_EMPTY_ERROR_CODE_ON_FAILED_TEST, ERROR_UNEXPECTED_NUMBER_OF_TEST_RESULT_ELEMENTS, ERROR_UNEXPECTED_RESULT_VALUE, ERROR_WHILE_PROCESSING_SVG_DOCUMENT, svgURL, TAG_ERROR_DESCRIPTION_ENTRY, TAG_TEST_RESULT, TEST_RESULT_FAILED, TEST_RESULT_PASSED, testNS |
| Methods inherited from class org.apache.batik.test.AbstractTest |
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getName, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setName, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
secure
boolean secure
constrain
boolean constrain
scripts
java.lang.String scripts
userAgent
ScriptSelfTest.TestUserAgent userAgent
ScriptSelfTest
public ScriptSelfTest()
setId
public void setId(java.lang.String id)
- Description copied from class:
org.apache.batik.test.AbstractTest
- Set this Test's id. Null is not allowed.
setSecure
public void setSecure(java.lang.Boolean secure)
getSecure
public java.lang.Boolean getSecure()
setConstrain
public void setConstrain(java.lang.Boolean constrain)
getConstrain
public java.lang.Boolean getConstrain()
setScripts
public void setScripts(java.lang.String scripts)
getScripts
public java.lang.String getScripts()
runImpl
public org.apache.batik.test.TestReport runImpl()
throws java.lang.Exception
- Description copied from class:
org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
- Run this test and produce a report.
The test goes through the following steps:
- load the input SVG into a Document
- build the GVT tree corresponding to the
Document and dispatch the 'onload' event
- looks for one and only one <testResult> element in
the Document. This is used to build the returned
TestReport
buildUserAgent
protected org.apache.batik.bridge.UserAgent buildUserAgent()
- Description copied from class:
org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
- Give subclasses a chance to build their own UserAgent