[MediaWiki-commits] [Gerrit] DSR unit tests for heading wikitext - change (mediawiki...parsoid)

2016-01-06 Thread Sn1per (Code Review)
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===\nD',
+   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 

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


[MediaWiki-commits] [Gerrit] DSR unit tests for heading wikitext - change (mediawiki...parsoid)

2016-01-06 Thread jenkins-bot (Code Review)
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===\nD',
+   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 
Gerrit-Reviewer: Subramanya Sastry 
Gerrit-Reviewer: jenkins-bot <>

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