use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testSetValueFail.
@Test(expected = DOMException.class)
public void testSetValueFail() {
SVGAttr attr = new SVGAttr("", "", node);
attr.setValue(null);
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testGetName.
@Test
public void testGetName() {
SVGAttr attr = new SVGAttr("attrName", "", node);
assertEquals("attrName", attr.getName());
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testIsIdKO.
@Test
public void testIsIdKO() {
SVGAttr attr = new SVGAttr("", "", node);
assertFalse(attr.isId());
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testIsSameNodeKOClone.
@Test
public void testIsSameNodeKOClone() {
SVGAttr attr = new SVGAttr("n", "v", node);
SVGAttr attr2 = (SVGAttr) attr.cloneNode(false);
assertFalse(attr.isSameNode(attr2));
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testGetPrefixEmpty.
@Test
public void testGetPrefixEmpty() {
SVGAttr attr = new SVGAttr(":", "", node);
assertEquals("", attr.getPrefix());
}
Aggregations