Search in sources :

Example 21 with SVGAttr

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

the class TestSVGAttr method testIsEqualNodeKONULL.

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

Example 22 with SVGAttr

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

the class TestSVGAttr method testSetValue.

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

Example 23 with SVGAttr

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

the class TestSVGAttr method testIsEqualNodeKO1.

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

Example 24 with SVGAttr

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

the class TestSVGAttr method testChildNodes.

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

Example 25 with SVGAttr

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

the class TestSVGAttr method testIsSameNodeSelf.

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