diff options
Diffstat (limited to 'tests/line_test.php')
-rw-r--r-- | tests/line_test.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/line_test.php b/tests/line_test.php index ed3c719..a895da3 100644 --- a/tests/line_test.php +++ b/tests/line_test.php @@ -1018,6 +1018,31 @@ class ezcGraphLineChartTest extends ezcGraphTestCase ); } + public function testLineChartNoLine() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + $chart->palette = new ezcGraphPaletteBlack(); + $chart->data['sample'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 4375, + 'IE' => 345, + 'Opera' => 1204, + 'wget' => 231, + 'Safari' => 987, + ) ); + + $chart->options->lineThickness = 0; + + $chart->driver = new ezcGraphSvgDriver(); + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + public function testBarChartDataPointColors() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; |