| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- ========================================================================= --> |
| <!-- This file is used by SelfContainedSVGOnLoadTestValidator to validate --> |
| <!-- handling of a self contained test which reports a failure and entries to --> |
| <!-- describe the failure. --> |
| <!-- --> |
| <!-- @author vincent.hardy@sun.com --> |
| <!-- @version $Id$ --> |
| <!-- ========================================================================= --> |
| |
| <svg xmlns="http://www.w3.org/2000/svg" |
| xmlns:xlink="http://www.w3.org/1999/xlink" |
| xmlns:test="http://xml.apache.org/batik/test" |
| width="450" height="500" viewBox="0 0 450 500" |
| onload="runTest(evt)"> |
| |
| <test:testResult id="testResult" result="passed" > |
| <test:errorDescriptionEntry id="can.you.read.this.first.entry" value="dummy" /> |
| <test:errorDescriptionEntry id="can.you.read.this.second.entry" value="dummy" /> |
| </test:testResult> |
| |
| <script type="text/ecmascript"><![CDATA[ |
| var testNS = "http://xml.apache.org/batik/test"; |
| |
| function runTest(evt){ |
| var tr = document.getElementById("testResult"); |
| tr.setAttributeNS(null, "result", "failed"); |
| tr.setAttributeNS(null, "errorCode", "can.you.read.this.error.code"); |
| |
| /*var entryA = document.createElementNS(testNS, "errorDescriptionEntry"); |
| entryA.setAttributeNS(null, "key", "can.you.read.this.first.entry"); |
| var.entryB = document.createElementNS(testNS, "errorDescriptionEntry"); |
| entryB.setAttributeNS(null, "key", "can.you.read.this.second.entry"); |
| |
| tr.appendChild(entryA); |
| tr.appendChild(entryB);*/ |
| |
| } |
| |
| ]]></script> |
| |
| </svg> |
| |