Search in sources :

Example 1 with SVGSVGElement

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());
}
Also used : SVGSVGElement(net.sf.latexdraw.parsers.svg.SVGSVGElement) Test(org.junit.Test)

Example 2 with SVGSVGElement

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");
}
Also used : SVGDefsElement(net.sf.latexdraw.parsers.svg.SVGDefsElement) SVGDocument(net.sf.latexdraw.parsers.svg.SVGDocument) SVGSVGElement(net.sf.latexdraw.parsers.svg.SVGSVGElement) Before(org.junit.Before)

Aggregations

SVGSVGElement (net.sf.latexdraw.parsers.svg.SVGSVGElement)2 SVGDefsElement (net.sf.latexdraw.parsers.svg.SVGDefsElement)1 SVGDocument (net.sf.latexdraw.parsers.svg.SVGDocument)1 Before (org.junit.Before)1 Test (org.junit.Test)1