assertPixels asserts that [Scene.Pixels] is equivalent to the image stored at the given filename in the testdata directory, with ".png" added to the filename if there is no extension (eg: "button" becomes "testdata/button.png"). Forward slashes are automatically replaced with backslashes on Windows.
(t imagex.TestingT, filename string)
| 86 | // execution. If there is no image at the given filename in the testdata |
| 87 | // directory, it creates the image. |
| 88 | func (sc *Scene) assertPixels(t imagex.TestingT, filename string) { |
| 89 | imagex.Assert(t, sc.Pixels, filename) |
| 90 | } |