PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / HTML / LengthTest.php
blob91f3de7e55920639c50a864f6856947506dc1d02
1 <?php
3 class HTMLPurifier_AttrDef_HTML_LengthTest extends HTMLPurifier_AttrDef_HTML_PixelsTest
6 public function setup()
8 $this->def = new HTMLPurifier_AttrDef_HTML_Length();
11 public function test()
13 // pixel check
14 parent::test();
16 // percent check
17 $this->assertDef('25%');
19 // Firefox maintains percent, so will we
20 $this->assertDef('0%');
22 // 0% <= percent <= 100%
23 $this->assertDef('-15%', '0%');
24 $this->assertDef('120%', '100%');
26 // fractional percents, apparently, aren't allowed
27 $this->assertDef('56.5%', '56%');
33 // vim: et sw=4 sts=4