diff options
author | Matt Farina <[email protected]> | 2013-06-18 09:29:51 -0400 |
---|---|---|
committer | Matt Farina <[email protected]> | 2013-06-18 09:29:51 -0400 |
commit | 618ef6c2c06b503aed92ee1177e2ed9c6d3f3741 (patch) | |
tree | da101a8957709b590d181f4e792404c7cd4993de /test/HTML5 | |
parent | c5f284f0b3e7c41d04d9f747f5c8814367fded46 (diff) |
More SVG testing.
Diffstat (limited to 'test/HTML5')
-rw-r--r-- | test/HTML5/Serializer/OutputRulesTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/HTML5/Serializer/OutputRulesTest.php b/test/HTML5/Serializer/OutputRulesTest.php index f1c67c2..425c269 100644 --- a/test/HTML5/Serializer/OutputRulesTest.php +++ b/test/HTML5/Serializer/OutputRulesTest.php @@ -243,6 +243,9 @@ class OutputRulesTest extends \HTML5\Tests\TestCase { <rect width="1" height="2" x="0" fill="#008d46" /> <rect width="1" height="2" x="1" fill="#ffffff" /> <rect width="1" height="2" x="2" fill="#d2232c" /> + <rect id="Bar" x="300" y="100" width="300" height="100" fill="rgb(255,255,0)"> + <animate attributeName="x" attributeType="XML" begin="0s" dur="9s" fill="freeze" from="300" to="0" /> + </rect> </svg> </body> </html>'); @@ -256,6 +259,8 @@ class OutputRulesTest extends \HTML5\Tests\TestCase { $o->element($list->item(0)); $contents = stream_get_contents($stream, -1, 0); $this->assertRegExp('|<svg width="150" height="100" viewBox="0 0 3 2">|', $contents); + $this->assertRegExp('|<rect width="1" height="2" x="0" fill="#008d46" />|', $contents); + $this->assertRegExp('|<rect id="Bar" x="300" y="100" width="300" height="100" fill="rgb\(255,255,0\)">|', $contents); } function testMath() { |