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 --- .../HTMLPurifier/Strategy/MakeWellFormedTest.php | 149 --------------------- 1 file changed, 149 deletions(-) delete mode 100644 lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormedTest.php (limited to 'lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormedTest.php') diff --git a/lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormedTest.php b/lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormedTest.php deleted file mode 100644 index c6d775c5a..000000000 --- a/lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormedTest.php +++ /dev/null @@ -1,149 +0,0 @@ -obj = new HTMLPurifier_Strategy_MakeWellFormed(); - } - - function testEmptyInput() { - $this->assertResult(''); - } - - function testWellFormedInput() { - $this->assertResult('This is bold text.'); - } - - function testUnclosedTagTerminatedByDocumentEnd() { - $this->assertResult( - 'Unclosed tag, gasp!', - 'Unclosed tag, gasp!' - ); - } - - function testUnclosedTagTerminatedByParentNodeEnd() { - $this->assertResult( - 'Bold and italic?', - 'Bold and italic?' - ); - } - - function testRemoveStrayClosingTag() { - $this->assertResult( - 'Unused end tags... recycle!', - 'Unused end tags... recycle!' - ); - } - - function testConvertStartToEmpty() { - $this->assertResult( - '
', - '
' - ); - } - - function testConvertEmptyToStart() { - $this->assertResult( - '
', - '
' - ); - } - - function testAutoCloseParagraph() { - $this->assertResult( - '

Paragraph 1

Paragraph 2', - '

Paragraph 1

Paragraph 2

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

Paragraphs

In

A

Div

', - '

Paragraphs

In

A

Div

' - ); - } - - function testAutoCloseListItem() { - $this->assertResult( - '
  1. Item 1
  2. Item 2
', - '
  1. Item 1
  2. Item 2
' - ); - } - - function testAutoCloseColgroup() { - $this->assertResult( - '
', - '
' - ); - } - - function testAutoCloseMultiple() { - $this->assertResult( - '
asdf', - '
asdf' - ); - } - - function testUnrecognized() { - $this->assertResult( - 'foo', - 'foo' - ); - } - - function testBlockquoteWithInline() { - $this->config->set('HTML.Doctype', 'XHTML 1.0 Strict'); - $this->assertResult( - // This is actually invalid, but will be fixed by - // ChildDef_StrictBlockquote - '
foobar
' - ); - } - - function testLongCarryOver() { - $this->assertResult( - 'asdf
asdfdf
asdf
', - 'asdf
asdfdf
asdf' - ); - } - - function testInterleaved() { - $this->assertResult( - 'foobarbaz', - 'foobarbaz' - ); - } - - function testNestedOl() { - $this->assertResult( - '
    1. foo
', - '
    1. foo
' - ); - } - - function testNestedUl() { - $this->assertResult( - '
    • foo
', - '
    • foo
' - ); - } - - function testNestedOlWithStrangeEnding() { - $this->assertResult( - '
      1. foo
    1. foo
    ', - '
        1. foo
    1. foo
    ' - ); - } - - function testNoAutocloseIfNoParentsCanAccomodateTag() { - $this->assertResult( - '
  1. foo
  2. ', - '
    foo
    ' - ); - } - -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3