use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testSetNodeValue.
@Test
public void testSetNodeValue() {
SVGAttr attr = new SVGAttr("", "", node);
attr.setNodeValue("val");
assertEquals("val", attr.getValue());
assertEquals("val", attr.getNodeValue());
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGNamedNodeMap method testItemOK.
@Test
public void testItemOK() {
final SVGAttr attr = new SVGAttr("test", "", doc.createElement("elt"));
map.getAttributes().add(attr);
assertEquals(map.item(0), attr);
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGNamedNodeMap method testSetNamedItem.
@Test
public void testSetNamedItem() {
final SVGAttr attr1 = new SVGAttr("test1", "v1", doc.createElement("elt1"));
map.setNamedItem(attr1);
assertEquals(attr1, map.getNamedItem("test1"));
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGNamedNodeMap method testGetLength.
@Test
public void testGetLength() {
map.getAttributes().add(new SVGAttr("", "", doc.createElement("elt")));
assertEquals(1, map.getLength());
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGNamedNodeMap method testRemoveNamedItemOK.
@Test
public void testRemoveNamedItemOK() {
final SVGAttr attr = new SVGAttr("test", "", doc.createElement("elt"));
map.getAttributes().add(attr);
assertEquals(attr, map.removeNamedItem("test"));
}
Aggregations