summaryrefslogtreecommitdiffstats
path: root/tests/tools_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-03-08 12:11:04 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-03-08 12:11:04 +0000
commit3ad0bb541ac4861644ed56bd349a43e58ab189a3 (patch)
treed10d4e38e0def03f6063bd3bdf09762b2bacf6ca /tests/tools_test.php
parentb08ae56b53938333b051b91b0a1f912428864950 (diff)
downloadzetacomponents-graph-3ad0bb541ac4861644ed56bd349a43e58ab189a3.zip
zetacomponents-graph-3ad0bb541ac4861644ed56bd349a43e58ab189a3.tar.gz
- Actually use link style property from SVG driver
Diffstat (limited to 'tests/tools_test.php')
-rw-r--r--tests/tools_test.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/tools_test.php b/tests/tools_test.php
index e597f17..4db0e49 100644
--- a/tests/tools_test.php
+++ b/tests/tools_test.php
@@ -196,6 +196,35 @@ class ezcGraphToolsTest extends ezcGraphTestCase
);
}
+ public function testPieChartSvgLinkingCustomCursor()
+ {
+ $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']->url = 'http://example.org/browsers';
+ $chart->data['sample']->url['Mozilla'] = 'http://example.org/browsers/mozilla';
+ $chart->data['sample']->highlight['Opera'] = true;
+
+ $chart->driver->options->linkCursor = 'crosshair';
+
+ $chart->render( 500, 200, $filename );
+
+ ezcGraphTools::linkSvgElements( $chart );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
public function testLineChartSvgLinking()
{
$filename = $this->tempDir . __FUNCTION__ . '.svg';
OpenPOWER on IntegriCloud