diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-10-23 08:27:26 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-10-23 08:27:26 +0000 |
commit | c7cb2aa85e0f7b4584119cc96bb908799bdf1923 (patch) | |
tree | b2856916a64cb9652225d6e8a0ff9bb241b56e4a /tests/line_test.php | |
parent | 06f5b4609042511a2eaeb4cde920094afcaceb63 (diff) | |
download | zetacomponents-graph-c7cb2aa85e0f7b4584119cc96bb908799bdf1923.zip zetacomponents-graph-c7cb2aa85e0f7b4584119cc96bb908799bdf1923.tar.gz |
- Fixed issue #11511: Line thickness wan't used for rendering
Diffstat (limited to 'tests/line_test.php')
-rw-r--r-- | tests/line_test.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/line_test.php b/tests/line_test.php index 6b79302..731e361 100644 --- a/tests/line_test.php +++ b/tests/line_test.php @@ -882,6 +882,53 @@ class ezcGraphLineChartTest extends ezcGraphTestCase ); } + public function testLineChartThickLines2d() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + $chart->options->lineThickness = 4; + $chart->data['sample'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 4375, + 'IE' => 345, + 'Opera' => 1204, + 'wget' => 231, + 'Safari' => 987, + ) ); + + $chart->driver = new ezcGraphSvgDriver(); + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + + public function testLineChartThickLines3d() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + $chart->options->lineThickness = 4; + $chart->data['sample'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 4375, + 'IE' => 345, + 'Opera' => 1204, + 'wget' => 231, + 'Safari' => 987, + ) ); + + $chart->driver = new ezcGraphSvgDriver(); + $chart->renderer = new ezcGraphRenderer3d(); + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + public function testBarChartHighlightValue() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; |