GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — spec/test at main · WebAssembly/spec

Expand file tree

/

test

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

test

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
core
core
 
 
custom
custom
 
 
harness
harness
 
 
js-api
js-api
 
 
legacy/exceptions
legacy/exceptions
 
 
meta
meta
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Todo.md
Todo.md
 
 
build.py
build.py
 
 
sync-js-api.py
sync-js-api.py
 
 

README.md

Outline

This directory contains the WebAssembly test suite. It is split into three directories:

  • core/, tests for the core semantics
  • js-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.

Multi-stage testing

The wast tests can be converted to JavaScript, and the JavaScript tests to HTML tests, using the build.py script. It will create a out/ directory (checked in in this repository, to be able to use it from github pages), containing subdirectories with expanded tests, as well as a landing page 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.

Procedure for adding a new test

  • 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.py so that the landing page is updated and all the cascading happens.
  • re-commit here, if necessary.

Local HTTP serving of the repository

From the root of your clone of this repository:

python -m SimpleHTTPServer 8000

Then open your favorite browser and browse to http://localhost:8000/test/out.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.