This repository contains tests for the MathML in HTML5 implementation note. We follow the formats and conventions of W3C's Test the Web Forward Project, please read their documentation for details. The main goals are:
You must at least install git and python. Clone the repository with
$ git clone --recursive https://github.com/username/MathMLinHTML5-tests.git
If you cloned the repository without --recursive, you will likely have empty resources
and tools
directories at the root of your cloned repo. You can clone the submodules with these additional steps:
$ cd MathMLinHTML5-tests $ git submodule update --init --recursive
Next, generate the MANIFEST.json file with the following command:
$ python tools/manifest/update.py
To verify the tests in your browser, you also need to setup a web server whose root points to the root of the cloned repo. For a quick setup, you can just run the serve.py
Python script at the root:
$ python server.py
Finally, open index.html
at the web server root to get an overview of all the tests. Using W3C's wptserve has not been tried but the tests can easily be imported into other automated testing framework anyway.
Many of the tests verify OpenType features and require specific Web fonts for that purpose. WOFF fonts are generated using the Python API of fontforge. A recent enough version of FontForge is necessary so that it includes fixes for WOFF checkSumAdjustment, USE_TYPO_METRICS flag and various bugs in OpenType MATH.