diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2009-02-03 18:23:28 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2009-02-03 18:23:28 +0000 |
commit | 1849ff7d52b3576da2d16c0095dcfa5090fbfc72 (patch) | |
tree | ea544d5612ec48204f500bd18f687fb45c39ce2f /tests/element_options_test.php | |
parent | af6c8b78b44a48da82b94c0f47b248a66f54d275 (diff) | |
download | zetacomponents-graph-1849ff7d52b3576da2d16c0095dcfa5090fbfc72.zip zetacomponents-graph-1849ff7d52b3576da2d16c0095dcfa5090fbfc72.tar.gz |
- Refactored axis space handling in a BC compatible way. Fixes division by zero
errors with axis space equals 0. Partly resolves #013631.
- Added more tests for axis label renderers
# Several SVGs changed because of slight reordering of SVG elements which
# causes no visual differences.
Diffstat (limited to 'tests/element_options_test.php')
-rw-r--r-- | tests/element_options_test.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/element_options_test.php b/tests/element_options_test.php index 58f1920..5685f2f 100644 --- a/tests/element_options_test.php +++ b/tests/element_options_test.php @@ -636,6 +636,43 @@ class ezcGraphElementOptionsTest extends ezcTestImageCase $this->fail( 'Expected ezcBaseValueException.' ); } + /* Disabled for now. + public function testChartElementAxisPropertyOuterAxisSpace() + { + $options = new ezcGraphChartElementNumericAxis(); + + $this->assertSame( + null, + $options->outerAxisSpace, + 'Wrong default value for property outerAxisSpace in class ezcGraphChartElementNumericAxis' + ); + + $options->outerAxisSpace = .2; + $this->assertSame( + .2, + $options->outerAxisSpace, + 'Setting property value did not work for property outerAxisSpace in class ezcGraphChartElementNumericAxis' + ); + + $options->outerAxisSpace = null; + $this->assertSame( + null, + $options->outerAxisSpace, + 'Setting property value did not work for property outerAxisSpace in class ezcGraphChartElementNumericAxis' + ); + + try + { + $options->outerAxisSpace = false; + } + catch ( ezcBaseValueException $e ) + { + return true; + } + + $this->fail( 'Expected ezcBaseValueException.' ); + } // */ + public function testChartElementAxisPropertyMajorGrid() { $options = new ezcGraphChartElementNumericAxis(); |