mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +00:00
39c6f42879
* Changed RDFa for links according to http://www.mediawiki.org/wiki/Parsoid/RDFa_vocabulary * Added basic support for internal/external link serialization * Moved numbering of external links from tokenizer to LinkHandler * Added round-tripping for generic HTML tags * Replaced nowiki tag with <meta typeOf="mw:tag" content="nowiki"> and <meta typeOf="mw:tag" content="/nowiki"> for now. * 154 round-trip tests passing (node parserTests.js --roundtrip). Change-Id: I16c4db21b1b543ee57c73e569c83025b64664542 |
||
---|---|---|
.. | ||
dumpGrepPatterns | ||
dumpGrepper.js | ||
dumpReader.js | ||
expansionTest.js | ||
fetch-parserTests.txt.js | ||
parserTests-whitelist.js | ||
parserTests.js | ||
parserTests.pegjs | ||
README | ||
roundtrip-test.js | ||
roundtrip.js | ||
tests.html | ||
wikia-rte-roundtrip-tests.xml | ||
worker.js |
Work in progress. :) Please see https://www.mediawiki.org/wiki/Future/Parser_development for some information on how to get started with these tests and the current parser architecture. Install dependencies and run tests: cd tests/parser make test == Running parserTests.js == For parserTests, you also need MediaWiki's parser test cases (parserTests.txt) either in a phase3 checkout parallel to extensions (tried by default). You can also specify a test case file as an argument. The "make test" target in this directory downloads parserTests.txt and specifies it as the test case automatically. Of course, you may also run tests manually: node ./parserTests.js Several options are available for parserTests: node ./parserTests.js --help Enjoy! == Running roundtrip tests == Round-trip tests are not yet ported to the current parser architecture. The focus so far has been on parserTests and getting the parser architecture in shape, but we'll get back to round-trip tests eventually.