summaryrefslogtreecommitdiffstats
path: root/tests/color_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-04 12:32:58 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-04 12:32:58 +0000
commit77164b43d94618e02f7a1c89708baca72758ca3d (patch)
treec997d9f5c3bf73cce630b859171587e27721deb4 /tests/color_test.php
parenta39691f135871fd24f67eb121278a82f9318a756 (diff)
downloadzetacomponents-graph-77164b43d94618e02f7a1c89708baca72758ca3d.zip
zetacomponents-graph-77164b43d94618e02f7a1c89708baca72758ca3d.tar.gz
- Added text shadow to font options
- Added text shadow support in SVG and GD driver
Diffstat (limited to 'tests/color_test.php')
-rw-r--r--tests/color_test.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/color_test.php b/tests/color_test.php
index c8792f6..1404de5 100644
--- a/tests/color_test.php
+++ b/tests/color_test.php
@@ -218,5 +218,45 @@ class ezcGraphColorTest extends ezcTestCase
$this->fail( 'Expected ezcGraphUnknownColorDefinitionException' );
}
+
+ public function testInvertBlack()
+ {
+ $color = ezcGraphColor::create( '#000000' )->invert();
+
+ $this->assertEquals(
+ $color,
+ ezcGraphColor::create( '#FFFFFF' )
+ );
+ }
+
+ public function testInvertWhite()
+ {
+ $color = ezcGraphColor::create( '#FFFFFF' )->invert();
+
+ $this->assertEquals(
+ $color,
+ ezcGraphColor::create( '#000000' )
+ );
+ }
+
+ public function testInvertTransparentWhite()
+ {
+ $color = ezcGraphColor::create( '#FFFFFF22' )->invert();
+
+ $this->assertEquals(
+ $color,
+ ezcGraphColor::create( '#00000022' )
+ );
+ }
+
+ public function testInvertRandomColor()
+ {
+ $color = ezcGraphColor::create( '#123456' )->invert();
+
+ $this->assertEquals(
+ $color,
+ ezcGraphColor::create( '#EDCBA9' )
+ );
+ }
}
?>
OpenPOWER on IntegriCloud