diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-12 11:20:27 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-12 11:20:27 +0000 |
commit | 22649b2b81c18461fd85793690de5d04b45806fa (patch) | |
tree | a227e9ebef702838ddc1d84b1348464663b80f16 /tests/pie_test.php | |
parent | b269dab61f162292ba4ad1f3cb400e182be23cee (diff) | |
download | zetacomponents-graph-22649b2b81c18461fd85793690de5d04b45806fa.zip zetacomponents-graph-22649b2b81c18461fd85793690de5d04b45806fa.tar.gz |
- Added image map support
# This changes all generated SVGs because each genereted element has an ID now
Diffstat (limited to 'tests/pie_test.php')
-rw-r--r-- | tests/pie_test.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/pie_test.php b/tests/pie_test.php index 00d9292..0095415 100644 --- a/tests/pie_test.php +++ b/tests/pie_test.php @@ -126,6 +126,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase ->method( 'drawPieSegment' ) ->with( $this->equalTo( new ezcGraphBoundings( 80, 0, 400, 200 ) ), + $this->equalTo( new ezcGraphContext( 'sample', 'Mozilla' ) ), $this->equalTo( ezcGraphColor::fromHex( '#4E9A06' ) ), $this->equalTo( 0., 1. ), $this->equalTo( 220.5, .1 ), @@ -137,7 +138,8 @@ class ezcGraphPieChartTest extends ezcImageTestCase ->method( 'drawPieSegment' ) ->with( $this->equalTo( new ezcGraphBoundings( 80, 0, 400, 200 ) ), - $this->equalTo( ezcGraphColor::fromHex( '#CC0000' ) ), + $this->equalTo( new ezcGraphContext( 'sample', 'IE' ) ), + $this->equalTo( ezcGraphColor::fromHex( '#CC0000' ) ), $this->equalTo( 220.5, .1 ), $this->equalTo( 238., 1. ), $this->equalTo( 'IE: 345 (4.8%)' ), @@ -148,6 +150,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase ->method( 'drawPieSegment' ) ->with( $this->equalTo( new ezcGraphBoundings( 80, 0, 400, 200 ) ), + $this->equalTo( new ezcGraphContext( 'sample', 'Opera' ) ), $this->equalTo( ezcGraphColor::fromHex( '#EDD400' ) ), $this->equalTo( 238., 1. ), $this->equalTo( 298.6, 1. ), @@ -159,6 +162,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase ->method( 'drawPieSegment' ) ->with( $this->equalTo( new ezcGraphBoundings( 80, 0, 400, 200 ) ), + $this->equalTo( new ezcGraphContext( 'sample', 'wget' ) ), $this->equalTo( ezcGraphColor::fromHex( '#75505B' ) ), $this->equalTo( 298.6, 1. ), $this->equalTo( 310., 1. ), @@ -170,6 +174,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase ->method( 'drawPieSegment' ) ->with( $this->equalTo( new ezcGraphBoundings( 80, 0, 400, 200 ) ), + $this->equalTo( new ezcGraphContext( 'sample', 'Safari' ) ), $this->equalTo( ezcGraphColor::fromHex( '#F57900' ) ), $this->equalTo( 310., 1. ), $this->equalTo( 360., 1. ), |