From c7cb2aa85e0f7b4584119cc96bb908799bdf1923 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Tue, 23 Oct 2007 08:27:26 +0000 Subject: - Fixed issue #11511: Line thickness wan't used for rendering --- tests/line_test.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'tests/line_test.php') 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'; -- cgit v1.1