mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 17:01:51 +00:00
28 lines
671 B
PHP
28 lines
671 B
PHP
|
<?php
|
||
|
|
||
|
class HTMLPurifier_AttrDef_HTML_ContentEditableTest extends HTMLPurifier_AttrDefHarness
|
||
|
{
|
||
|
public function setUp()
|
||
|
{
|
||
|
parent::setUp();
|
||
|
$this->def = new HTMLPurifier_AttrDef_HTML_ContentEditable();
|
||
|
}
|
||
|
|
||
|
public function test()
|
||
|
{
|
||
|
$this->assertDef('', false);
|
||
|
$this->assertDef('true', false);
|
||
|
$this->assertDef('caret', false);
|
||
|
$this->assertDef('false');
|
||
|
}
|
||
|
|
||
|
public function testTrustedHtml()
|
||
|
{
|
||
|
$this->config->set('HTML.Trusted', true);
|
||
|
$this->assertDef('');
|
||
|
$this->assertDef('true');
|
||
|
$this->assertDef('false');
|
||
|
$this->assertDef('caret', false);
|
||
|
}
|
||
|
}
|