This directory contains the WebAssembly test suite. It is split into three directories:
core/, tests for the core semanticsjs-api/, tests for the JavaScript API.html/, tests for the JavaScript API in a DOM environment.
A list of to-do's can be found here.
The wast tests can be converted to JavaScript, and the JavaScript tests to HTML
tests, using the build.py script. Depending on the flags (--js and
--html) given to the script, the output files will be written to the relevant
output directories, including a landing page in --front <OUT> for runnning
all of them in HTML.
The HTML tests are just Web Platform Tests using the testharness.js library.
Each wast test gets its equivalent JS test, and each JS test (including wast test) gets its equivalent WPT, to be easily run in browser vendors' automation.
- put the test in the right directory according to the above (top) description.
- ideally, commit here so the actual content commit and build commit are separated.
- re-run
build.pyso that the landing page is updated and all the cascading happens. - re-commit here, if necessary.
From the root of your clone of this repository (with Python2):
python -m SimpleHTTPServer 8000
Or,
python3 -m http.server 8000
Then open your favorite browser and browse to http://localhost:8000/test/<OUT>.