mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
d3f0196df7
HTML is parsed using a HTML parser and re-serialized, and the output compared to the serialization of the new parser's dom. Newline normalization is a cheap hack for now, need to improve that later. |
||
---|---|---|
.. | ||
dumpReader.js | ||
expansionTest.js | ||
parserTests.js | ||
parserTests.pegjs | ||
README | ||
roundtrip-test.js | ||
roundtrip.js | ||
tests.html | ||
wikia-rte-roundtrip-tests.xml | ||
worker.js |
Work in progress. :) Batch-testing tools loading the parsing code into node.js, and going through a MediaWiki XML export dump to run round-trip tests over it. Currently not much will succeed as there's bad handling of newlines. ;) Need npm modules: * jquery * diff * libxmljs (requires native compilation) * webworker