Show
Ignore:
Timestamp:
03/07/08 08:33:04 (4 years ago)
Author:
nperriault
Message:

Clever Svg:

  • refs #40: more elements tests
  • Removed depth management, as svg handle it natively

Warning: breaks BC from 0.5.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleversvg/trunk/tests/csCircleTest.php

    r333 r336  
    4646    $doc->addElement($circle); 
    4747    $xml = $doc->toXML(); 
    48     $this->assertEquals(preg_match('#z-index: 4#s', $xml), 1, $xml); 
     48    $this->assertAttrValueEquals($doc, '/svg:svg/svg:circle/@style', 'z-index: 4'); 
     49    $circle->setDepth(null); 
     50    $this->assertNodeAttrNotExists($doc, '/svg:svg/svg:circle', 'style'); 
    4951  } 
    5052