summaryrefslogtreecommitdiffstats
path: root/chart2/qa
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-10-17 13:39:47 +0000
committerBjörn Milcke <bm@openoffice.org>2003-10-17 13:39:47 +0000
commitf2d93a6317f38ba8f7b93d5f6275f26f51b3da16 (patch)
tree1cc91f5872b2bbe7da9dac4dc02d77b66794e704 /chart2/qa
parentmodel representation of the former ChartArea (diff)
downloadcore-f2d93a6317f38ba8f7b93d5f6275f26f51b3da16.tar.gz
core-f2d93a6317f38ba8f7b93d5f6275f26f51b3da16.zip
+Area test
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/TestCaseOldAPI.java25
1 files changed, 24 insertions, 1 deletions
diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java
index 8f1b5e5b5b98..aba39cdb7a7d 100644
--- a/chart2/qa/TestCaseOldAPI.java
+++ b/chart2/qa/TestCaseOldAPI.java
@@ -61,7 +61,8 @@ public class TestCaseOldAPI extends ComplexTestCase {
"testSubTitle",
"testDiagram",
"testAxis",
- "testLegend"
+ "testLegend",
+ "testArea"
};
}
@@ -323,6 +324,28 @@ public class TestCaseOldAPI extends ComplexTestCase {
}
}
+ // ------------
+
+ public void testArea()
+ {
+ XPropertySet xArea = mxOldDoc.getArea();
+ assure( "No Area", xArea != null );
+
+ try
+ {
+ int nColor = 0xffe1ff; // thistle1
+ xArea.setPropertyValue( "FillColor", new Integer( nColor ) );
+
+ int nNewColor = AnyConverter.toInt( xArea.getPropertyValue( "FillColor" ) );
+ assure( "Changing FillColor of Area failed", nNewColor == nColor );
+ }
+ catch( Exception ex )
+ {
+ failed( ex.getMessage() );
+ ex.printStackTrace( (PrintWriter)log );
+ }
+ }
+
// ================================================================================
private XModel mxChartModel;