summaryrefslogtreecommitdiff
path: root/chart2/qa/TestCaseOldAPI.java
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/TestCaseOldAPI.java
parent5ebf05216f0e00a6db292d4078b9d052c2346eae (diff)
+Area test
Diffstat (limited to 'chart2/qa/TestCaseOldAPI.java')
-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;