jenkins-bot has submitted this change and it was merged. Change subject: DSR unit tests for heading wikitext ......................................................................
DSR unit tests for heading wikitext Change-Id: If8a2e8a767865a1958bc60b75dbf52c3625d7e3c --- M tests/mocha/dsr.js 1 file changed, 16 insertions(+), 0 deletions(-) Approvals: Subramanya Sastry: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/mocha/dsr.js b/tests/mocha/dsr.js index 325ca47..55ad818 100644 --- a/tests/mocha/dsr.js +++ b/tests/mocha/dsr.js @@ -94,6 +94,22 @@ runTests('Lists', listTests); var headingTests = [ + { + wt: '=A=\n==B==\n===C===\n====D====', + specs: [ + { selector: 'body > h1', dsrContent: ['=A=', '=', '='] }, + { selector: 'body > h2', dsrContent: ['==B==', '==', '=='] }, + { selector: 'body > h3', dsrContent: ['===C===', '===', '==='] }, + { selector: 'body > h4', dsrContent: ['====D====', '====', '===='] }, + ], + }, + { + wt: '=A New Use for the = Sign=\n==The == Operator==', + specs: [ + { selector: 'body > h1', dsrContent: ['=A New Use for the = Sign=', '=', '='] }, + { selector: 'body > h2', dsrContent: ['==The == Operator==', '==', '=='] }, + ], + }, ]; runTests('Headings', headingTests); -- To view, visit https://gerrit.wikimedia.org/r/262823 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If8a2e8a767865a1958bc60b75dbf52c3625d7e3c Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: Sn1per <geof...@gmail.com> Gerrit-Reviewer: Subramanya Sastry <ssas...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits