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.jpg") 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: if you are preloading an image, or have other code that requires the ref test to not get generated right away, use an explicit exit() call to signal when the test is done.
To run the ref tests, click here.