Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Screenshot = Screenshot {
- screenshotFile :: !(Path Abs File)
- screenshotImage :: !(Image PixelRGB8)
- goldenScreenshotHere :: FilePath -> WebdriverTestM app (GoldenTest Screenshot)
- pureGoldenScreenshot :: FilePath -> ByteString -> GoldenTest Screenshot
- imageSimilarity :: Image PixelRGB8 -> Image PixelRGB8 -> Double
- diffPixel :: PixelRGB8 -> PixelRGB8 -> Double
- computeImageDiff :: Image PixelRGB8 -> Image PixelRGB8 -> Image PixelRGB8
- computePixelDiff :: PixelRGB8 -> PixelRGB8 -> PixelRGB8
- debugScreenshot :: FilePath -> WebdriverTestM app ()
- normaliseImage :: ByteString -> IO (Image PixelRGB8)
Documentation
data Screenshot Source #
A screenshot with location
Screenshot | |
|
goldenScreenshotHere :: FilePath -> WebdriverTestM app (GoldenTest Screenshot) Source #
Take a screenshot and turn it into a golden test.
pureGoldenScreenshot :: FilePath -> ByteString -> GoldenTest Screenshot Source #
Make a golden test for a given screenshot in lazy ByteString
form.
debugScreenshot :: FilePath -> WebdriverTestM app () Source #
normaliseImage :: ByteString -> IO (Image PixelRGB8) Source #