diff options
author | Björn Milcke <bm@openoffice.org> | 2003-10-06 14:01:00 +0000 |
---|---|---|
committer | Björn Milcke <bm@openoffice.org> | 2003-10-06 14:01:00 +0000 |
commit | 471634e80d2398063337176f324ed6eb630ec69b (patch) | |
tree | 2699d58ff8ac853a172cb76f32929a2de78e3a89 /chart2/qa | |
parent | TitleHelper problems (diff) | |
download | core-471634e80d2398063337176f324ed6eb630ec69b.tar.gz core-471634e80d2398063337176f324ed6eb630ec69b.zip |
+Origin, Logarithmic
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/TestCaseOldAPI.java | 16 |
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 ) { |