use of net.sf.latexdraw.parsers.svg.SVGSVGElement in project latexdraw by arnobl.
the class TestSVGDocument method testAdoptNodeOK.
@Test
public void testAdoptNodeOK() {
SVGSVGElement elt = new SVGSVGElement(doc2);
doc1.adoptNode(elt);
assertEquals(doc1, elt.getOwnerDocument());
assertEquals(elt, doc1.getFirstChild());
}
use of net.sf.latexdraw.parsers.svg.SVGSVGElement in project latexdraw by arnobl.
the class TestSVGBase method setUp.
@Before
public void setUp() {
doc = new SVGDocument();
final SVGSVGElement root = doc.getFirstChild();
root.setAttribute("xmlns:" + LNamespace.LATEXDRAW_NAMESPACE, LNamespace.LATEXDRAW_NAMESPACE_URI);
root.appendChild(new SVGDefsElement(doc));
root.setAttribute(SVGAttributes.SVG_VERSION, "1.1");
root.setAttribute(SVGAttributes.SVG_BASE_PROFILE, "full");
}
Aggregations