From a5cc42b5e441af8f34a122624d136cfcb772c65e Mon Sep 17 00:00:00 2001
From: Waylan Limberg tags.
Also edited numerious tests that were expecting wrong output - they now expect
correct output. Note that a few **still fail** because the output before moving
to ELementTree wasn't correct either. So I set the expected output to what I
think it should be so we don't forget about it later.
I should also note that the 'safe-mode' tests are failing. However, I believe
the current expected output is correct as it is valid html. Interestingly,
these tests passed prior to this fix. We'll need to special case safe-mode here.
---
tests/misc/CRLF_line_ends.html | 4 ++--
tests/misc/comments.html | 5 +++--
tests/misc/div.html | 7 ++++---
tests/misc/hash.html | 10 ++++++----
tests/misc/mismatched-tags.html | 6 ++----
tests/misc/more_comments.html | 6 ++----
tests/misc/multi-line-tags.html | 5 +++--
tests/misc/multiline-comments.html | 15 +++++++++------
tests/misc/php.html | 13 ++++++++-----
tests/misc/pre.html | 9 +++++----
tests/misc/span.html | 8 +++++---
11 files changed, 49 insertions(+), 39 deletions(-)
(limited to 'tests/misc')
diff --git a/tests/misc/CRLF_line_ends.html b/tests/misc/CRLF_line_ends.html
index c650e58..a72b1ca 100644
--- a/tests/misc/CRLF_line_ends.html
+++ b/tests/misc/CRLF_line_ends.html
@@ -1,4 +1,4 @@
foo X<0 X>0
a
-++#!/usr/bin/python -hello+hello
a
-++!/usr/bin/python -hello+hello
a
\ No newline at end of file diff --git a/tests/misc/mismatched-tags.html b/tests/misc/mismatched-tags.html index edeba33..792a8b9 100644 --- a/tests/misc/mismatched-tags.html +++ b/tests/misc/mismatched-tags.html @@ -1,5 +1,3 @@ -Some text
Some text
and a bit more
diff --git a/tests/misc/more_comments.html b/tests/misc/more_comments.html index d4430cd..37436c5 100644 --- a/tests/misc/more_comments.html +++ b/tests/misc/more_comments.html @@ -1,9 +1,7 @@ - -+--> + +
foo -
-foo
--This should have a p tag +
This should have a p tag
+ + + +<?php echo "not_block_level";?>
diff --git a/tests/misc/pre.html b/tests/misc/pre.html index 5ac9799..a44ae12 100644 --- a/tests/misc/pre.html +++ b/tests/misc/pre.html @@ -1,12 +1,13 @@ -+\ No newline at end of file diff --git a/tests/misc/span.html b/tests/misc/span.html index dadf5df..bafcf0f 100644 --- a/tests/misc/span.html +++ b/tests/misc/span.html @@ -1,4 +1,6 @@aaa bbb --++ +* and this is pre-formatted content * and it should be printed just like this * and not formatted as a list -\ No newline at end of file +
Foo bar Baz
-