summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-11-30 09:00:07 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-11-30 09:00:07 +0000
commita624a3e637586a8efc327cd5e8e6021bf3546c00 (patch)
tree0105a96ccd6db32baf911a4fcda3338f322cb0d8 /tests/renderer_2d_test.php
parent0df549c064a08505b195eaa20e13cdf41c2d37e5 (diff)
downloadzetacomponents-graph-a624a3e637586a8efc327cd5e8e6021bf3546c00.zip
zetacomponents-graph-a624a3e637586a8efc327cd5e8e6021bf3546c00.tar.gz
- Fixed: Bug #9655 (pieChartOffset and highlight do not work together in 2d
renderer)
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 4a41bf6..2fb6832 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -1687,6 +1687,32 @@ class ezcGraphRenderer2dTest extends ezcTestCase
);
}
+ public function testRenderPieChartWithHighlightAndOffset()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $chart = new ezcGraphPieChart();
+ $chart->data['sample'] = new ezcGraphArrayDataSet( array(
+ 'Mozilla' => 4375,
+ 'IE' => 345,
+ 'Opera' => 1204,
+ 'wget' => 231,
+ 'Safari' => 987,
+ ) );
+
+ $chart->data['sample']->highlight['Safari'] = true;
+
+ $chart->renderer->options->pieChartOffset = 76;
+
+ $chart->driver = new ezcGraphSvgDriver();
+ $chart->render( 500, 200, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
public function testRenderPieChartWithBackgroundBottomRight()
{
$filename = $this->tempDir . __FUNCTION__ . '.svg';
OpenPOWER on IntegriCloud