Author: kn Date: Wed Nov 21 11:15:18 2007 New Revision: 6779 Log: - Added test case for a bar chart with two sinlge point datasets
Added: trunk/Graph/tests/data/compare/ezcGraphChartTest_testBarChartWithTwoSingleDataPoint.svg (with props) Modified: trunk/Graph/tests/chart_test.php Modified: trunk/Graph/tests/chart_test.php ============================================================================== --- trunk/Graph/tests/chart_test.php [iso-8859-1] (original) +++ trunk/Graph/tests/chart_test.php [iso-8859-1] Wed Nov 21 11:15:18 2007 @@ -180,6 +180,25 @@ ); } + public function testBarChartWithTwoSingleDataPoint() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $barChart = new ezcGraphBarChart(); + $barChart->data['test'] = new ezcGraphArrayDataSet( + array( 23 ) + ); + $barChart->data['test 2'] = new ezcGraphArrayDataSet( + array( 5 ) + ); + $barChart->render( 400, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + public function testBarChartWithSingleDataPointNumericAxis() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; Added: trunk/Graph/tests/data/compare/ezcGraphChartTest_testBarChartWithTwoSingleDataPoint.svg ============================================================================== Binary file - no diff available. Propchange: trunk/Graph/tests/data/compare/ezcGraphChartTest_testBarChartWithTwoSingleDataPoint.svg ------------------------------------------------------------------------------ svn:eol-style = native Propchange: trunk/Graph/tests/data/compare/ezcGraphChartTest_testBarChartWithTwoSingleDataPoint.svg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components