PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
htmlpurifier
/
tests
/
HTMLPurifier
/
AttrDef
/
CSS
<?php // borrowed for the sakes of this test class HTMLPurifier_AttrDef_CSS_MultipleTest extends HTMLPurifier_AttrDefHarness { public function test() { $this->def = new HTMLPurifier_AttrDef_CSS_Multiple( new HTMLPurifier_AttrDef_Integer() ); $this->assertDef('1 2 3 4'); $this->assertDef('6'); $this->assertDef('4 5'); $this->assertDef(' 2 54 2 3', '2 54 2 3'); $this->assertDef("6\r3", '6 3'); $this->assertDef('asdf', false); $this->assertDef('a s d f', false); $this->assertDef('1 2 3 4 5', '1 2 3 4'); $this->assertDef('1 2 invalid 3', '1 2 3'); } } // vim: et sw=4 sts=4
[+]
..
[-] CompositeTest.php
[edit]
[-] LengthTest.php
[edit]
[-] ColorTest.php
[edit]
[-] PercentageTest.php
[edit]
[-] ListStyleTest.php
[edit]
[-] FilterTest.php
[edit]
[-] BackgroundPositionTest.php
[edit]
[-] NumberTest.php
[edit]
[-] MultipleTest.php
[edit]
[-] TextDecorationTest.php
[edit]
[-] FontTest.php
[edit]
[-] AlphaValueTest.php
[edit]
[-] BorderTest.php
[edit]
[-] FontFamilyTest.php
[edit]
[-] BackgroundTest.php
[edit]
[-] URITest.php
[edit]
[-] ImportantDecoratorTest.php
[edit]