public class TestSVGEllipseElement extends AbstractTestSVGElement {
@SuppressWarnings("unused")
@Test
public void testContructor() {
try {
new SVGEllipseElement(null, null);
fail();
}
catch(Exception e){/**/}
try {
new SVGEllipseElement(node, null);
fail();
}
catch(MalformedSVGDocument e){/**/}
try {
node.setAttribute(SVGAttributes.SVG_RX, "dsd"); //$NON-NLS-1$
node.setAttribute(SVGAttributes.SVG_RY, "dsd"); //$NON-NLS-1$
new SVGEllipseElement(node, null);
fail();
}
catch(MalformedSVGDocument e){/**/}
try {
node.setAttribute(SVGAttributes.SVG_RX, "1"); //$NON-NLS-1$
new SVGEllipseElement(node, null);
fail();
}
catch(MalformedSVGDocument e){/**/}
try {
node.setAttribute(SVGAttributes.SVG_RX, "-1"); //$NON-NLS-1$
node.setAttribute(SVGAttributes.SVG_RY, "10"); //$NON-NLS-1$
new SVGEllipseElement(node, null);
fail();
}
catch(MalformedSVGDocument e){/**/}
try {
node.setAttribute(SVGAttributes.SVG_RX, "10"); //$NON-NLS-1$
node.setAttribute(SVGAttributes.SVG_RY, "-1"); //$NON-NLS-1$
new SVGEllipseElement(node, null);
fail();
}
catch(MalformedSVGDocument e){/**/}
try {
node.setAttribute(SVGAttributes.SVG_RX, "10"); //$NON-NLS-1$
node.setAttribute(SVGAttributes.SVG_RY, "20"); //$NON-NLS-1$
new SVGEllipseElement(node, null);
}
catch(MalformedSVGDocument e) { fail(); }
}