Search in sources :

Example 1 with SVGAttr

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

the class TestSVGAttr method testGetNodeType.

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

Example 2 with SVGAttr

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

the class TestSVGAttr method testGetPrefixOK.

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

Example 3 with SVGAttr

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

the class TestSVGAttr method testGetParentNode.

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

Example 4 with SVGAttr

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

the class TestSVGAttr method testSetNodeValueFail.

@Test(expected = DOMException.class)
public void testSetNodeValueFail() {
    SVGAttr attr = new SVGAttr("", "", node);
    attr.setNodeValue(null);
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 5 with SVGAttr

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

the class TestSVGAttr method testGetLocalName.

@Test
public void testGetLocalName() {
    SVGAttr attr = new SVGAttr("attrNodeName", "", node);
    assertEquals("attrNodeName", attr.getLocalName());
}
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