diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-10-19 15:37:27 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-10-19 15:37:27 +0000 |
commit | 672c37cce7d0cd64d4f24f94d8d4327a2c726521 (patch) | |
tree | 2adf92f140bf56f11ed8d0d9e0176d8ed5c4420b /tests | |
parent | 630a95b1f8474a1b9ae866f0cf0fb06a348ad11a (diff) | |
download | zetacomponents-graph-672c37cce7d0cd64d4f24f94d8d4327a2c726521.zip zetacomponents-graph-672c37cce7d0cd64d4f24f94d8d4327a2c726521.tar.gz |
- Moved complete pie chart testcase to ming driver, because calling ming in
other testsuites changes the hashs of the resulting images.
- Removed unused test image
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/compare/ezcGraphMingDriverTest_testDrawTooLongTextException.png | bin | 31 -> 0 bytes | |||
-rw-r--r-- | tests/driver_ming_test.php | 35 | ||||
-rw-r--r-- | tests/renderer_3d_test.php | 37 |
3 files changed, 36 insertions, 36 deletions
diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTooLongTextException.png b/tests/data/compare/ezcGraphMingDriverTest_testDrawTooLongTextException.png Binary files differdeleted file mode 100644 index 4a43efe..0000000 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTooLongTextException.png +++ /dev/null diff --git a/tests/driver_ming_test.php b/tests/driver_ming_test.php index 1c7a13e..d530d32 100644 --- a/tests/driver_ming_test.php +++ b/tests/driver_ming_test.php @@ -1304,6 +1304,41 @@ class ezcGraphMingDriverTest extends ezcTestCase 'Expected flash object id as return value.' ); } + + public function testRenderLabeledFlashPieChart() + { + $filename = $this->tempDir . __FUNCTION__ . '.swf'; + + $chart = new ezcGraphPieChart(); + $chart->options->font->path = dirname( __FILE__ ) . '/data/fdb_font.fdb'; + + $chart->palette = new ezcGraphPaletteEzBlue(); + $chart->data['sample'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 4375, + 'IE' => 345, + 'Opera' => 1204, + 'wget' => 231, + 'Safari' => 987, + ) ); + + $chart->data['sample']->highlight['Safari'] = true; + + $chart->renderer = new ezcGraphRenderer3d(); + + $chart->renderer->options->pieChartShadowSize = 10; + $chart->renderer->options->pieChartGleam = .5; + $chart->renderer->options->dataBorder = false; + $chart->renderer->options->pieChartHeight = 16; + $chart->renderer->options->legendSymbolGleam = .5; + + $chart->driver = new ezcGraphMingDriver(); + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.swf' + ); + } } ?> diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index fbf8105..7e15fd3 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -415,42 +415,7 @@ class ezcGraphRenderer3dTest extends ezcImageTestCase $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' ); } - - public function testRenderLabeledFlashPieChart() - { - $filename = $this->tempDir . __FUNCTION__ . '.swf'; - - $chart = new ezcGraphPieChart(); - $chart->options->font->path = dirname( __FILE__ ) . '/data/fdb_font.fdb'; - - $chart->palette = new ezcGraphPaletteEzBlue(); - $chart->data['sample'] = new ezcGraphArrayDataSet( array( - 'Mozilla' => 4375, - 'IE' => 345, - 'Opera' => 1204, - 'wget' => 231, - 'Safari' => 987, - ) ); - - $chart->data['sample']->highlight['Safari'] = true; - - $chart->renderer = new ezcGraphRenderer3d(); - - $chart->renderer->options->pieChartShadowSize = 10; - $chart->renderer->options->pieChartGleam = .5; - $chart->renderer->options->dataBorder = false; - $chart->renderer->options->pieChartHeight = 16; - $chart->renderer->options->legendSymbolGleam = .5; - - $chart->driver = new ezcGraphMingDriver(); - $chart->render( 500, 200, $filename ); - - $this->compare( - $filename, - $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.swf' - ); - } - + public function testRenderFullShadow() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; |