diff options
Diffstat (limited to 'tests/line_test.php')
-rw-r--r-- | tests/line_test.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/line_test.php b/tests/line_test.php index 48d1052..432bd9f 100644 --- a/tests/line_test.php +++ b/tests/line_test.php @@ -956,6 +956,55 @@ class ezcGraphLineChartTest extends ezcGraphTestCase ); } + public function testLineChartUnsyncedFonts() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + $chart->data['sample'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 4375, + 'IE' => 345, + 'Opera' => 1204, + 'wget' => 231, + 'Safari' => 987, + ) ); + + $chart->renderer->options->syncAxisFonts = false; + + $chart->driver = new ezcGraphSvgDriver(); + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + + public function testLineChartUnsyncedFonts3d() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + $chart->data['sample'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 4375, + 'IE' => 345, + 'Opera' => 1204, + 'wget' => 231, + 'Safari' => 987, + ) ); + + $chart->renderer = new ezcGraphRenderer3d(); + $chart->renderer->options->syncAxisFonts = false; + + $chart->driver = new ezcGraphSvgDriver(); + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + public function testStackedBarChart() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; |