-
Notifications
You must be signed in to change notification settings - Fork 397
Running tests
First step is configuring the supported browsers. Create the "test/resources/browser_manifest/browser_manifest.json" file. The samples of the file can be found in the "test/resources/browser_manifest" folder.
The following command runs tests for the AVM1 and AVM2:
make test
The tests that are known to pass are listed in the "test/test_manifest.json" file. The following command runs these tests:
make reftest
To create new references images locally, run the make makeref
command.
Edit the "test/test_manifest.json" file to add a new test. There are two types of tests: frame image comparison ("eq") and scriptable ("stas"). All tests shall have "id" and "type" attributes defined. The "id" attribute must be unique.
The frame image comparison tests shall have the following format:
{ "id": "button-ref",
"frames": [10],
"swf": "swfs/button1.swf",
"type": "eq"
},
where "frames" is a list of the frame indices where snapshots will be taken, "swf" - is a path to the SWF file.
The scriptable tests shall have the following format:
{ "id": "basic",
"stas": "swfs/trace.stas",
"filenames": [
"swfs/local2global.swf"
],
"type": "stas"
},
where "stas" is a path to the script file, "filenames" is SWF test files paths.
See also Running swfdec tests
Mozilla 2019