blob: 8f36190b6d60bb556792af1e5dbd75a81bc7d67b [file] [log] [blame]
/*
Copyright 2003 The Apache Software Foundation
Licensed 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.
*/
package org.apache.batik.dom;
import org.apache.batik.test.AbstractTest;
import org.apache.batik.dom.GenericDocument;
import org.apache.batik.dom.GenericDOMImplementation;
import org.apache.batik.dom.svg.SVGOMDocument;
import org.apache.batik.dom.svg.SVGDOMImplementation;
import org.w3c.dom.Document;
public class DOM3Test extends AbstractTest {
static String SVG_NAMESPACE_URI = "http://www.w3.org/2000/svg";
static String EX_NAMESPACE_URI = "http://www.example.org/";
static String XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace";
static String XMLNS_NAMESPACE_URI = "http://www.w3.org/2000/xmlns/";
static String XML_EVENTS_NAMESPACE_URI = "http://www.w3.org/2001/xml-events";
protected Document newDoc() {
return new GenericDocument(null, GenericDOMImplementation.getDOMImplementation());
}
protected Document newSVGDoc() {
Document doc = new SVGOMDocument(null, SVGDOMImplementation.getDOMImplementation());
doc.appendChild(doc.createElementNS(SVG_NAMESPACE_URI, "svg"));
return doc;
}
}