Test for Entity-handling
This commit is contained in:
parent
dfe22be5ff
commit
14afed5893
|
@ -288,6 +288,12 @@ class PageRendererTest < Test::Unit::TestCase
|
|||
'<p>[[test]]&<a href=\'a&b\'>shebang</a> <script>alert("xss!");</script> *foo*</p>',
|
||||
'<nowiki>[[test]]&<a href="a&b">shebang</a> <script>alert("xss!");</script> *foo*</nowiki>')
|
||||
end
|
||||
|
||||
def test_entities
|
||||
assert_markup_parsed_as(
|
||||
"<p>Known: \342\210\256. Pass-through: &. Unknown: &foo;.</p>",
|
||||
"Known: ∮. Pass-through: &. Unknown: &foo;.")
|
||||
end
|
||||
|
||||
def test_content_with_bracketted_wiki_word
|
||||
set_web_property :brackets_only, true
|
||||
|
|
Loading…
Reference in a new issue