public void testRectangle() throws Exception {
page.clear();
page.add(new SRect(0, 0, 20, 20).setFillPaint(FlatColor.RED));
Doc xdoc = saveAndReadback(doc);
assertTrue("0.0".equals(xdoc.xpathString("/svg/rect/@x")));
assertTrue("1.0".equals(xdoc.xpathString("/svg/rect/@stroke-width")));
}
@Test public void testOval() throws Exception {
page.clear();
page.add(new SOval(0, 0, 20, 20).setFillPaint(FlatColor.RED));