Search in sources :

Example 6 with SVGAttr

use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.

the class TestSVGAttr method testCloneNode.

@Test
public void testCloneNode() {
    SVGAttr attr = new SVGAttr("n", "v", node);
    SVGAttr attr2 = (SVGAttr) attr.cloneNode(false);
    assertNotNull(attr2);
    assertEquals(attr.getName(), attr2.getName());
    assertEquals(attr.getValue(), attr2.getValue());
    assertEquals(attr.getOwnerElement(), attr2.getOwnerElement());
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 7 with SVGAttr

use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.

the class TestSVGAttr method testUselessMethods.

@Test
public void testUselessMethods() {
    SVGAttr attr = new SVGAttr("", "", node);
    assertNull(attr.removeChild(null));
    assertNull(attr.insertBefore(null, null));
    assertNull(attr.getAttributes());
    assertNull(attr.getFirstChild());
    assertNull(attr.getLastChild());
    assertNull(attr.appendChild(null));
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 8 with SVGAttr

use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.

the class TestSVGAttr method testLookupNamespaceURINULL.

@Test
public void testLookupNamespaceURINULL() {
    SVGAttr attr = new SVGAttr("pref:n", "", node);
    assertNull(attr.lookupNamespaceURI(null));
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 9 with SVGAttr

use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.

the class TestSVGAttr method testGetNodeName.

@Test
public void testGetNodeName() {
    SVGAttr attr = new SVGAttr("attrNodeName", "", node);
    assertEquals("attrNodeName", attr.getNodeName());
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 10 with SVGAttr

use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.

the class TestSVGAttr method testGetNamespaceURINULL.

@Test
public void testGetNamespaceURINULL() {
    SVGAttr attr = new SVGAttr("pref:n", "", node);
    assertNull(attr.getNamespaceURI());
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Aggregations

SVGAttr (net.sf.latexdraw.parsers.svg.SVGAttr)42 Test (org.junit.Test)42 SVGElement (net.sf.latexdraw.parsers.svg.SVGElement)2 SVGNamedNodeMap (net.sf.latexdraw.parsers.svg.SVGNamedNodeMap)1