Search in sources :

Example 31 with SVGAttr

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

the class TestSVGAttr method testGetValue.

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

Example 32 with SVGAttr

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

the class TestSVGAttr method testIsEqualNodeKO2.

@Test
public void testIsEqualNodeKO2() {
    SVGAttr attr = new SVGAttr("n", "v", node);
    SVGAttr attr2 = new SVGAttr("", "v", node);
    assertFalse(attr.isEqualNode(attr2));
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 33 with SVGAttr

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

the class TestSVGAttr method testIsIdOK.

@Test
public void testIsIdOK() {
    SVGAttr attr = new SVGAttr("id", "", node);
    assertTrue(attr.isId());
}
Also used : SVGAttr(net.sf.latexdraw.parsers.svg.SVGAttr) Test(org.junit.Test)

Example 34 with SVGAttr

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

the class TestSVGAttr method testGetNodeValue.

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

Example 35 with SVGAttr

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

the class TestSVGAttr method testIsSameNodeKONULL.

@Test
public void testIsSameNodeKONULL() {
    SVGAttr attr = new SVGAttr("n", "v", node);
    assertFalse(attr.isSameNode(null));
}
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