Author: Kore Nordmann Date: 2007-01-03 12:28:16 +0100 (Wed, 03 Jan 2007) New Revision: 4456
Log: - Add one more test for labeled axis label order Modified: trunk/Graph/tests/labeled_axis_test.php Modified: trunk/Graph/tests/labeled_axis_test.php =================================================================== --- trunk/Graph/tests/labeled_axis_test.php 2007-01-03 10:33:35 UTC (rev 4455) +++ trunk/Graph/tests/labeled_axis_test.php 2007-01-03 11:28:16 UTC (rev 4456) @@ -68,6 +68,19 @@ ); } + public function testAutomaticLabelingMultiple2() + { + $chart = new ezcGraphLineChart(); + $chart->data['sample'] = new ezcGraphArrayDataSet( array( 1 => 1, 3 => 3, 5 => 5, 8 => 8 ) ); + $chart->data['sample2'] = new ezcGraphArrayDataSet( array( 1, 2, 3, 4, 5, 6, 7, 8 ) ); + $chart->render( 500, 200 ); + + $this->assertEquals( + array( 0, 1, 2, 3, 4, 5, 6, 7, 8 ), + $this->getAttribute( $chart->xAxis, 'labels' ) + ); + } + public function testAutomaticLabelingMultipleMixed() { $chart = new ezcGraphLineChart(); -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components