File tree Expand file tree Collapse file tree 2 files changed +20
-28
lines changed
sentry/src/test/java/io/sentry Expand file tree Collapse file tree 2 files changed +20
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -34,4 +34,24 @@ class SentryReplayOptionsTest {
3434 assertEquals(100_000 , replayOptions.quality.bitRate)
3535 assertEquals(1.0f , replayOptions.quality.sizeScale)
3636 }
37+
38+ @Test
39+ fun testDefaultScreenshotStrategy () {
40+ val options = SentryReplayOptions (false , null )
41+ assertEquals(ScreenshotStrategyType .PIXEL_COPY , options.getScreenshotStrategy())
42+ }
43+
44+ @Test
45+ fun testSetScreenshotStrategyToCanvas () {
46+ val options = SentryReplayOptions (false , null )
47+ options.screenshotStrategy = ScreenshotStrategyType .CANVAS
48+ assertEquals(ScreenshotStrategyType .CANVAS , options.getScreenshotStrategy())
49+ }
50+
51+ @Test
52+ fun testSetScreenshotStrategyToPixelCopy () {
53+ val options = SentryReplayOptions (false , null )
54+ options.screenshotStrategy = ScreenshotStrategyType .PIXEL_COPY
55+ assertEquals(ScreenshotStrategyType .PIXEL_COPY , options.getScreenshotStrategy())
56+ }
3757}
You can’t perform that action at this time.
0 commit comments