vhardy 2004/02/23 09:41:49
Modified: test-sources/org/apache/batik/bridge EcmaLoadTest.java
Log:
Fixed error in EcmaLoadTest
Revision Changes Path
1.2 +8 -4 xml-batik/test-sources/org/apache/batik/bridge/EcmaLoadTest.java
Index: EcmaLoadTest.java
===================================================================
RCS file:
/home/cvs/xml-batik/test-sources/org/apache/batik/bridge/EcmaLoadTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EcmaLoadTest.java 23 Feb 2004 15:24:58 -0000 1.1
+++ EcmaLoadTest.java 23 Feb 2004 17:41:48 -0000 1.2
@@ -68,7 +68,11 @@
"ecmaCheckLoadEmbedAttr",
};
boolean[] secure = {true, false};
- String[] scriptOrigin = {"any", "document", "embeded"};
+ String[][] scriptOrigin = {{"any"},
+ {"any", "document"},
+ {"any", "document", "embeded"},
+ {"any", "document", "embeded"},
+ };;
//
// <!> Need to make restricted {true/false}
@@ -82,10 +86,10 @@
// influence on whether or not the script can be loaded.
//
for (int i=0; i<scriptSource.length; i++) {
- for (int j=0; j<=i; j++) {
+ for (int j=0; j<scriptOrigin[i].length; j++) {
for (int k=0; k<secure.length; k++) {
ScriptSelfTest t= buildTest(scripts, scriptSource[i],
- scriptOrigin[j],
+ scriptOrigin[i][j],
secure[k]);
addTest(t);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]