Search in sources :

Example 26 with SVGAttr

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);
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 27 with SVGAttr

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());
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 28 with SVGAttr

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());
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 29 with SVGAttr

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));
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 30 with SVGAttr

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