diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-03-08 12:11:04 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-03-08 12:11:04 +0000 |
commit | 3ad0bb541ac4861644ed56bd349a43e58ab189a3 (patch) | |
tree | d10d4e38e0def03f6063bd3bdf09762b2bacf6ca /tests/tools_test.php | |
parent | b08ae56b53938333b051b91b0a1f912428864950 (diff) | |
download | zetacomponents-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.php | 29 |
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'; |