Sn1per has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/262823

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, 15 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid 
refs/changes/23/262823/1

diff --git a/tests/mocha/dsr.js b/tests/mocha/dsr.js
index 325ca47..05ee420 100644
--- a/tests/mocha/dsr.js
+++ b/tests/mocha/dsr.js
@@ -94,6 +94,21 @@
 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==',
+               specs: [
+                       { selector: 'body > h2', dsrContent: ['==A New Use for 
the = Sign==', '==', '=='] },
+               ],
+       },
 ];
 runTests('Headings', headingTests);
 

-- 
To view, visit https://gerrit.wikimedia.org/r/262823
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If8a2e8a767865a1958bc60b75dbf52c3625d7e3c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Sn1per <geof...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to