Test for Entity-handling
This commit is contained in:
parent
dfe22be5ff
commit
14afed5893
1 changed files with 6 additions and 0 deletions
|
@ -288,6 +288,12 @@ class PageRendererTest < Test::Unit::TestCase
|
||||||
'<p>[[test]]&<a href=\'a&b\'>shebang</a> <script>alert("xss!");</script> *foo*</p>',
|
'<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>')
|
'<nowiki>[[test]]&<a href="a&b">shebang</a> <script>alert("xss!");</script> *foo*</nowiki>')
|
||||||
end
|
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
|
def test_content_with_bracketted_wiki_word
|
||||||
set_web_property :brackets_only, true
|
set_web_property :brackets_only, true
|
||||||
|
|
Loading…
Add table
Reference in a new issue