diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-08-01 08:56:03 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-08-01 08:56:03 +0000 |
commit | f7424deb85d8e47e2f0023ce095e3fff388669d4 (patch) | |
tree | 3463596db10ac580874131d95a31d8e14f5c9d62 /tests/renderer_2d_test.php | |
parent | 52afada0966e2e62a938316d2c0cb100fa497e89 (diff) | |
download | zetacomponents-graph-f7424deb85d8e47e2f0023ce095e3fff388669d4.zip zetacomponents-graph-f7424deb85d8e47e2f0023ce095e3fff388669d4.tar.gz |
- Fixed bug #11107: Floating point inaccuracies caused missing grid in line
chart
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r-- | tests/renderer_2d_test.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php index 8a15f78..bf66db6 100644 --- a/tests/renderer_2d_test.php +++ b/tests/renderer_2d_test.php @@ -2047,6 +2047,26 @@ class ezcGraphRenderer2dTest extends ezcGraphTestCase ); } + public function testBug11107_MissingGridWithBottomLegend() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $graph = new ezcGraphLineChart(); + $graph->palette = new ezcGraphPaletteBlack(); + $graph->legend->position = ezcGraph::BOTTOM; + + $graph->data['sample'] = new ezcGraphArrayDataSet( + array( 1, 4, 6, 8, 2 ) + ); + + $graph->render( 560, 250, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + public function testRendererOptionsPropertyMaxLabelHeight() { $options = new ezcGraphRendererOptions(); |