Tim Starling has submitted this change and it was merged. Change subject: Some tests for nested p-wrappers ......................................................................
Some tests for nested p-wrappers Bug: T150317 Change-Id: Ia7db3872b7cf80dd8d6b9ee2bd144b51c07a0a24 --- M src/test/java/org/wikimedia/html5depurate/DepuratorTest.java 1 file changed, 9 insertions(+), 1 deletion(-) Approvals: Tim Starling: Verified; Looks good to me, approved diff --git a/src/test/java/org/wikimedia/html5depurate/DepuratorTest.java b/src/test/java/org/wikimedia/html5depurate/DepuratorTest.java index 4d5b14d..3a3defc 100644 --- a/src/test/java/org/wikimedia/html5depurate/DepuratorTest.java +++ b/src/test/java/org/wikimedia/html5depurate/DepuratorTest.java @@ -66,10 +66,18 @@ "<table><tbody><tr class=\"mw-empty-elt\"></tr></tbody></table>"}, // 19. Empty p {COMPAT, "<p>\n</p>", "<p class=\"mw-empty-elt\">\n</p>"}, - // 20. No p-wrapping of an inline element which contains a block element + // 20. No p-wrapping of an inline element which contains a block element (T150317) {COMPAT, "<small><div>x</div></small>", "<small><div>x</div></small>"}, // 21. p-wrapping of an inline element which contains an inline element {COMPAT, "<small><b>x</b></small>", "<p><small><b>x</b></small></p>"}, + // 22. p-wrapping is enabled in a blockquote in an inline element + {COMPAT, "<small><blockquote>x</blockquote></small>", + "<small><blockquote><p>x</p></blockquote></small>"}, + // 23. A block element inside a detected paragraph disarms + // p-wrapping for the remainder of the detected paragraph, but it + // is re-armed by a subsequent top-level block element. + {COMPAT, "<small><blockquote>x</blockquote></small>y<div></div>z", + "<small><blockquote><p>x</p></blockquote></small>y<div></div><p>z</p>"}, }); } -- To view, visit https://gerrit.wikimedia.org/r/320953 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia7db3872b7cf80dd8d6b9ee2bd144b51c07a0a24 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/html5depurate Gerrit-Branch: master Gerrit-Owner: Tim Starling <tstarl...@wikimedia.org> Gerrit-Reviewer: Tim Starling <tstarl...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits