Package net.sf.latexdraw.parsers.svg

Examples of net.sf.latexdraw.parsers.svg.SVGDefsElement.appendChild()


  public void testGetDef() throws MalformedSVGDocument {
    SVGDefsElement defs = new SVGDefsElement(node, null);
    SVGMarkerElement mark = new SVGMarkerElement(node.getOwnerDocument());

    mark.setAttribute(SVGAttributes.SVG_ID, SVGAttributes.SVG_ID);
    defs.appendChild(mark);

    assertNull(defs.getDef(null));
    assertNull(defs.getDef("")); //$NON-NLS-1$
    assertNull(defs.getDef("dsqd")); //$NON-NLS-1$
    assertEquals(mark, defs.getDef("id")); //$NON-NLS-1$
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.