Skip to the content.

 

Table of contents

Testing-suica

There is a rudimentary automatic Suica tester. It runs predefined test cases and compares the produced images. It reports the percentage of match:

Because timings cannot be set absolutely, some test cases may not produce the expected result. In this case run the tester another time to check whether the result is consistent.

To test only part of the test cases, a string template is given as a parameter to the tester. The following code test.html?convex will test all test cases with the substring convex in their names.

Browsers have a standard way of reaction on non-standard web pages (e.g. missing closing tags, unregistered custom tags, etc). This is heavily used in all Suica examples. Tools that validate HTML pages may complain about Suica HTML code.

Using Three.js

This version of Suica is based on Three.js. Programs that use Suica should include suica.js. Apart from Suica itself, suica.js contains: