test(postcard): decoded URL scheme check, unsafe inlined output and the literal footer
- TestURLSchemeCheck: prose and scheme words in titles or queries pass; every URL-bearing attribute, CSS, meta refresh and each entity-encoded or whitespace-split script URL is refused with a snippet at the markup; a layout override with javascript: falls back to the file version with inlining on and off; the editor refuses it on content_html and CSS URLs on content_css - TestInlineUnsafeOutput: a failing inlined result sends the style-block version with one warning per layout - TestFooterSiteNameLiteral: the footer prints the site name escaped and literally on the default and system layouts; body stays Markdown - check-phase35.sh GO_TESTS requires the three tests
This commit is contained in:
@@ -104,6 +104,9 @@ GO_TESTS=(
|
||||
./modules/postcard:TestSiteNameSend
|
||||
./modules/postcard:TestUnsafeSiteNameDropped
|
||||
./modules/postcard:TestUnsafeText
|
||||
./modules/postcard:TestURLSchemeCheck
|
||||
./modules/postcard:TestInlineUnsafeOutput
|
||||
./modules/postcard:TestFooterSiteNameLiteral
|
||||
)
|
||||
|
||||
# docker stage: the non-short framework tests (Postgres).
|
||||
|
||||
Reference in New Issue
Block a user