3 class HTMLPurifier_AttrDef_HTML_FrameTargetTest
extends HTMLPurifier_AttrDefHarness
6 public function setup()
9 $this->def
= new HTMLPurifier_AttrDef_HTML_FrameTarget();
12 public function testNoneAllowed()
14 $this->assertDef('', false);
15 $this->assertDef('foo', false);
16 $this->assertDef('_blank', false);
17 $this->assertDef('baz', false);
20 public function test()
22 $this->config
->set('Attr.AllowedFrameTargets', 'foo,_blank');
23 $this->assertDef('', false);
24 $this->assertDef('foo');
25 $this->assertDef('_blank');
26 $this->assertDef('baz', false);