From 22cf19e174bcee88b44968f2773d1bad2da2b54d Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 18 Jul 2012 03:59:10 -0700 Subject: bad sync with github windows client --- .../tests/HTMLPurifier/ChildDef/RequiredTest.php | 73 ---------------------- 1 file changed, 73 deletions(-) delete mode 100644 lib/htmlpurifier/tests/HTMLPurifier/ChildDef/RequiredTest.php (limited to 'lib/htmlpurifier/tests/HTMLPurifier/ChildDef/RequiredTest.php') diff --git a/lib/htmlpurifier/tests/HTMLPurifier/ChildDef/RequiredTest.php b/lib/htmlpurifier/tests/HTMLPurifier/ChildDef/RequiredTest.php deleted file mode 100644 index 8bb4f45ee..000000000 --- a/lib/htmlpurifier/tests/HTMLPurifier/ChildDef/RequiredTest.php +++ /dev/null @@ -1,73 +0,0 @@ -assertIdentical($def->elements, - array( - 'foobar' => true - ,'bang' => true - ,'gizmo' => true - )); - } - - function testPrepareArray() { - $def = new HTMLPurifier_ChildDef_Required(array('href', 'src')); - $this->assertIdentical($def->elements, - array( - 'href' => true - ,'src' => true - )); - } - - function setUp() { - parent::setUp(); - $this->obj = new HTMLPurifier_ChildDef_Required('dt | dd'); - } - - function testEmptyInput() { - $this->assertResult('', false); - } - - function testRemoveIllegalTagsAndElements() { - $this->assertResult( - '
Term
Text in an illegal location'. - '
Definition
Illegal tag', - '
Term
Definition
'); - $this->assertResult('How do you do!', false); - } - - function testIgnoreWhitespace() { - // whitespace shouldn't trigger it - $this->assertResult("\n
Definition
"); - } - - function testPreserveWhitespaceAfterRemoval() { - $this->assertResult( - '
Definition
', - '
Definition
' - ); - } - - function testDeleteNodeIfOnlyWhitespace() { - $this->assertResult("\t ", false); - } - - function testPCDATAAllowed() { - $this->obj = new HTMLPurifier_ChildDef_Required('#PCDATA | b'); - $this->assertResult('Out Bold text', 'Out Bold text'); - } - - function testPCDATAAllowedWithEscaping() { - $this->obj = new HTMLPurifier_ChildDef_Required('#PCDATA | b'); - $this->config->set('Core.EscapeInvalidChildren', true); - $this->assertResult( - 'Out Bold text', - 'Out Bold text<img />' - ); - } -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3