mediawiki-extensions-Visual.../modules/parser/test
Subramanya Sastry 25419d028a First pass porting PHP's sanitizer to Parsoid
* Ported attribute sanitization code (and related functions) from
  core/includes/Sanitizer.php
* Added dummy flags and set to true (use of rdfa, microdata attrs,
  and html5 mode).
* Removed couple whitelisted sanitizer tests.
* A few sanitizer tests now pass.
* More work to be done.

Change-Id: I19c92bbfcb57f3e97a7af1b7c5f63772e427dae4
2012-07-26 11:35:55 -05:00
..
dumpGrepPatterns Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
specs Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
COPYING Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
dumpGrepper.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
dumpReader.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
expansionTest.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
fetch-parserTests.txt.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
package.json Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
parserTests-whitelist.js First pass porting PHP's sanitizer to Parsoid 2012-07-26 11:35:55 -05:00
parserTests.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
parserTests.pegjs Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
parsoid.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
README Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
roundtrip-test.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
roundtrip.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
runtests.sh Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
specs.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
tests.html Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
wikia-rte-roundtrip-tests.xml Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00
worker.js Parsoid: move tests/parser to modules/parser/test 2012-07-25 02:29:25 +02:00

Work in progress. :)

Please see https://www.mediawiki.org/wiki/Parsoid for some information on how
to get started with these tests and the current parser architecture.

Install dependencies and run tests:

(cd .. if you are in this README file's directory)
npm test

== Running parserTests.js ==

For parserTests, you also need MediaWiki's parser test cases (parserTests.txt). 
'npm test' from the modules directory automatically fetches the current
version to this directory. You can also specify a test case file as an
argument. You can also symlink parserTests.txt from a core git checkout.

node ./parserTests.js

Several options are available for parserTests:

node ./parserTests.js --help

Example for round-trip testing:

node ./parserTests.js --roundtrip

Enjoy!