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/Strategy/FixNestingTest.php | 144 --------------------- 1 file changed, 144 deletions(-) delete mode 100644 lib/htmlpurifier/tests/HTMLPurifier/Strategy/FixNestingTest.php (limited to 'lib/htmlpurifier/tests/HTMLPurifier/Strategy/FixNestingTest.php') diff --git a/lib/htmlpurifier/tests/HTMLPurifier/Strategy/FixNestingTest.php b/lib/htmlpurifier/tests/HTMLPurifier/Strategy/FixNestingTest.php deleted file mode 100644 index 9394352ec..000000000 --- a/lib/htmlpurifier/tests/HTMLPurifier/Strategy/FixNestingTest.php +++ /dev/null @@ -1,144 +0,0 @@ -obj = new HTMLPurifier_Strategy_FixNesting(); - } - - function testPreserveInlineInRoot() { - $this->assertResult('Bold text'); - } - - function testPreserveInlineAndBlockInRoot() { - $this->assertResult('Blank
Block
'); - } - - function testRemoveBlockInInline() { - $this->assertResult( - '
Illegal div.
', - 'Illegal div.' - ); - } - - function testEscapeBlockInInline() { - $this->config->set('Core.EscapeInvalidChildren', true); - $this->assertResult( - '
Illegal div.
', - '<div>Illegal div.</div>' - ); - } - - function testRemoveNodeWithMissingRequiredElements() { - $this->assertResult('', ''); - } - - function testListHandleIllegalPCDATA() { - $this->assertResult( - '', - '' - ); - } - - function testRemoveIllegalPCDATA() { - $this->assertResult( - 'Illegal text
', - '
' - ); - } - - function testCustomTableDefinition() { - $this->assertResult('
Cell 1
'); - } - - function testRemoveEmptyTable() { - $this->assertResult('
', ''); - } - - function testChameleonRemoveBlockInNodeInInline() { - $this->assertResult( - '
Not allowed!
', - 'Not allowed!' - ); - } - - function testChameleonRemoveBlockInBlockNodeWithInlineContent() { - $this->assertResult( - '

Not allowed!

', - '

Not allowed!

' - ); - } - - function testNestedChameleonRemoveBlockInNodeWithInlineContent() { - $this->assertResult( - '

Not allowed!

', - '

Not allowed!

' - ); - } - - function testNestedChameleonPreserveBlockInBlock() { - $this->assertResult( - '
Allowed!
' - ); - } - - function testChameleonEscapeInvalidBlockInInline() { - $this->config->set('Core.EscapeInvalidChildren', true); - $this->assertResult( // alt config - '
Not allowed!
', - '<div>Not allowed!</div>' - ); - } - - function testExclusionsIntegration() { - // test exclusions - $this->assertResult( - 'Not allowed', - '' - ); - } - - function testPreserveInlineNodeInInlineRootNode() { - $this->config->set('HTML.Parent', 'span'); - $this->assertResult('Bold'); - } - - function testRemoveBlockNodeInInlineRootNode() { - $this->config->set('HTML.Parent', 'span'); - $this->assertResult('
Reject
', 'Reject'); - } - - function testInvalidParentError() { - // test fallback to div - $this->config->set('HTML.Parent', 'obviously-impossible'); - $this->config->set('Cache.DefinitionImpl', null); - $this->expectError('Cannot use unrecognized element as parent'); - $this->assertResult('
Accept
'); - } - - function testCascadingRemovalOfNodesMissingRequiredChildren() { - $this->assertResult('
', ''); - } - - function testCascadingRemovalSpecialCaseCannotScrollOneBack() { - $this->assertResult('
', ''); - } - - function testLotsOfCascadingRemovalOfNodes() { - $this->assertResult('
', ''); - } - - function testAdjacentRemovalOfNodeMissingRequiredChildren() { - $this->assertResult('
', ''); - } - - function testStrictBlockquoteInHTML401() { - $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); - $this->assertResult('
text
', '

text

'); - } - -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3