summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-19 15:37:27 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-19 15:37:27 +0000
commit672c37cce7d0cd64d4f24f94d8d4327a2c726521 (patch)
tree2adf92f140bf56f11ed8d0d9e0176d8ed5c4420b /tests
parent630a95b1f8474a1b9ae866f0cf0fb06a348ad11a (diff)
downloadzetacomponents-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.pngbin31 -> 0 bytes
-rw-r--r--tests/driver_ming_test.php35
-rw-r--r--tests/renderer_3d_test.php37
3 files changed, 36 insertions, 36 deletions
diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTooLongTextException.png b/tests/data/compare/ezcGraphMingDriverTest_testDrawTooLongTextException.png
deleted file mode 100644
index 4a43efe..0000000
--- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTooLongTextException.png
+++ /dev/null
Binary files differ
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';
OpenPOWER on IntegriCloud