Subramanya Sastry has uploaded a new change for review. https://gerrit.wikimedia.org/r/306475
Change subject: Sync parserTests with core. ...................................................................... Sync parserTests with core. * Added a html/parsoid section to one of the newly synced test. * Not added a html/parsoid section to the other one -- new test needs to be investigated if it needs one. Change-Id: I3ced26aa737da3e85ea3464fff4110def8450730 --- M tests/parserTests.txt M tools/fetch-parserTests.txt.js 2 files changed, 27 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid refs/changes/75/306475/1 diff --git a/tests/parserTests.txt b/tests/parserTests.txt index 09e6090..fb65143 100644 --- a/tests/parserTests.txt +++ b/tests/parserTests.txt @@ -27222,3 +27222,28 @@ <li>b</li> </ul> !! end + +!! test +Thumbnail output +!! wikitext +[[File:Thumb.png|thumb]] +!! html/php+tidy +<div class="thumb tright"> +<div class="thumbinner" style="width:137px;"><a href="/wiki/File:Thumb.png" class="image"><img alt="Thumb.png" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> +<div class="thumbcaption"> +<div class="magnify"><a href="/wiki/File:Thumb.png" class="internal" title="Enlarge"></a></div> +</div> +</div> +</div> +!! end + +!! test +unclosed internal link XSS (T137264) +!! wikitext +[[#%3Cscript%3Ealert(1)%3C/script%3E| +!! html/php +<p>[[#<script>alert(1)</script>| +</p> +!! html/parsoid +<p>[[#%3Cscript%3Ealert(1)%3C/script%3E|</p> +!! end diff --git a/tools/fetch-parserTests.txt.js b/tools/fetch-parserTests.txt.js index 416f015..9d63e23 100755 --- a/tools/fetch-parserTests.txt.js +++ b/tools/fetch-parserTests.txt.js @@ -12,9 +12,9 @@ // and update these hashes automatically. // // You can use 'sha1sum -b tests/parser/parserTests.txt' to compute this value: -var expectedSHA1 = "7baf1dfcb3e2315e586b14542acea8fbda38e15b"; +var expectedSHA1 = "32b7e90c37dcf24b2f639d0a1d8def37f317fa3d"; // git log --pretty=oneline -1 tests/parser/parserTests.txt -var latestCommit = "9526a4bb6630fce432f3922d9fb2c16f4237d136"; +var latestCommit = "b92a94b52f8e30c53794123961f79315adf80a55"; var fs = require('fs'); var path = require('path'); -- To view, visit https://gerrit.wikimedia.org/r/306475 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3ced26aa737da3e85ea3464fff4110def8450730 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: Subramanya Sastry <ssas...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits