summaryrefslogtreecommitdiff
path: root/chart2/qa/TestCaseOldAPI.java
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-10-06 14:01:00 +0000
committerBjörn Milcke <bm@openoffice.org>2003-10-06 14:01:00 +0000
commit471634e80d2398063337176f324ed6eb630ec69b (patch)
tree2699d58ff8ac853a172cb76f32929a2de78e3a89 /chart2/qa/TestCaseOldAPI.java
parent0c5988929b30320c76ae8899c208c5809c48b4b9 (diff)
+Origin, Logarithmic
Diffstat (limited to 'chart2/qa/TestCaseOldAPI.java')
-rw-r--r--chart2/qa/TestCaseOldAPI.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java
index a796fadafcb9..6a022d22a53d 100644
--- a/chart2/qa/TestCaseOldAPI.java
+++ b/chart2/qa/TestCaseOldAPI.java
@@ -241,6 +241,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
assure( "No y-axis found", xProp != null );
double nNewMax = 12.3;
+ double nNewOrigin = 2.7;
xProp.setPropertyValue( "Max", new Double( nNewMax ));
assure( "AutoMax is on", ! AnyConverter.toBoolean( xProp.getPropertyValue( "AutoMax" )) );
@@ -257,6 +258,21 @@ public class TestCaseOldAPI extends ComplexTestCase {
// Object oMin = xProp.getPropertyValue( "Min" );
// assure( "No Minimum set", AnyConverter.isDouble( oMin ));
// log.println( "Minimum retrieved: " + AnyConverter.toDouble( oMin ));
+
+ xProp.setPropertyValue( "Origin", new Double( nNewOrigin ));
+ assure( "Origin invalid",
+ approxEqual(
+ AnyConverter.toDouble( xProp.getPropertyValue( "Origin" )),
+ nNewOrigin ));
+ xProp.setPropertyValue( "AutoOrigin", new Boolean( true ));
+ assure( "AutoOrigin is off", AnyConverter.toBoolean( xProp.getPropertyValue( "AutoOrigin" )) );
+
+ xProp.setPropertyValue( "Logarithmic", new Boolean( true ));
+ assure( "Scaling is not logarithmic",
+ AnyConverter.toBoolean( xProp.getPropertyValue( "Logarithmic" )) );
+ xProp.setPropertyValue( "Logarithmic", new Boolean( false ));
+ assure( "Scaling is not logarithmic",
+ ! AnyConverter.toBoolean( xProp.getPropertyValue( "Logarithmic" )) );
}
catch( Exception ex )
{