summaryrefslogtreecommitdiffstats
path: root/tests/tools_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-08-08 06:55:13 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-08-08 06:55:13 +0000
commitedc4c9c5ac909b4863c32d39ae73a98ec12726b4 (patch)
treeafc59bac840295417cc6fd9cccb383504c09f761 /tests/tools_test.php
parent8c2284477cd6a99d0bfa2174e1ae96d12739d497 (diff)
downloadzetacomponents-graph-edc4c9c5ac909b4863c32d39ae73a98ec12726b4.zip
zetacomponents-graph-edc4c9c5ac909b4863c32d39ae73a98ec12726b4.tar.gz
- Fixed bug #11235: In interactive 3d bar charts circle and bullet bars are not
linked. # Numeric part of IDs in SVG files changed because one element missed an ID # Also ensured mimetype 'application/octet-stream' for all SVG test files
Diffstat (limited to 'tests/tools_test.php')
-rw-r--r--tests/tools_test.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/tools_test.php b/tests/tools_test.php
index b04e50b..10b5db0 100644
--- a/tests/tools_test.php
+++ b/tests/tools_test.php
@@ -356,6 +356,36 @@ class ezcGraphToolsTest extends ezcGraphTestCase
);
}
+ public function test3dBarChartSvgLinking()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $chart = new ezcGraphBarChart();
+ $chart->palette = new ezcGraphPaletteBlack();
+ $chart->options->fillLines = 200;
+ $chart->renderer = new ezcGraphRenderer3d();
+
+ $chart->data['sampleData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1) );
+ $chart->data['moreData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1) );
+ $chart->data['evenMoreData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1) );
+
+ $chart->data['sampleData']->url = 'http://example.com/sampleData';
+ $chart->data['sampleData']->symbol = ezcGraph::DIAMOND;
+ $chart->data['moreData']->url = 'http://example.com/moreData';
+ $chart->data['moreData']->symbol = ezcGraph::CIRCLE;
+ $chart->data['evenMoreData']->url = 'http://example.com/evenMoreData';
+ $chart->data['evenMoreData']->symbol = ezcGraph::BULLET;
+
+ $chart->render( 500, 200, $filename );
+
+ ezcGraphTools::linkSvgElements( $chart );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
public function testSvgLinkingWithWrongDriver()
{
$filename = $this->tempDir . __FUNCTION__ . '.svg';
OpenPOWER on IntegriCloud