To build a ref test, put your code below, and place any images in test/ref/ so they can be preloaded by filename (e.g., preload="foo.png") with a relative path. Click Run to test your sketch, Generate Ref Test to build the test. Save the test to test/ref/ as well. Note: You MUST have an exit() call somewhere within your ref test.
To run the ref tests, click here.