Parsoid: wt -> html: Add unit tests for verifying DSR assignments when parsing wikitext
Parsoid is a service that converts between wikitext and HTML. Parsoid tries to map wikitext substrings to the corresponding HTML DOM fragments. This mapping is recorded in the DSR (DOM Source Range) property in the data-parsoid HTML attribute.
This task is to write unit tests that verifies DSR assignment expectations for different wikitext fragments. The different instances of this task would be for different areas of wikitext markup (lists, quotes, tables, etc.).
- You should install Parsoid for development. Following instructions in [[Parsoid/Developer Setup]].
- Basic familiarity with Javascript is going to be very very useful -- you don't need advanced JS skills.
- Basic familiarity with wikitext is useful since you are going to be adding unit tests for different wikitext snippets.
- We are around in the #mediawiki-parsoid IRC channel on Freenode IRC.
There are multiple instances of this task (one for each of the different kinds of unit tests) hence please tell us which kind of unit test you work on! Each task should be considered independent&can be taken up either sequentially by someone or in parallel by multiple students.
This test file has a number of sections for lists, tables, headings, etc. So, each instance corresponds to one of those sections. In that file, there are 2 partially filled sections for paragraphs and lists.
Each instance of this task requires at least 5 accepted unit tests per section. After the initial tests are added, we'll add new tasks as necessary.