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());
}
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());
}
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());
}
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);
}
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());
}
Aggregations