-
@Config(sdk = {30}, qualifiers = w227dp-h227dp-small-notlong-round-watch-xhdpi-keyshidden-nonav)@GraphicsMode(value = GraphicsMode.Mode.NATIVE) public abstract class ScreenshotTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumScreenshotTest.TimeTextModepublic classScreenshotTest.Companion
-
Field Summary
Fields Modifier and Type Field Description private Floattoleranceprivate final ComposeContentTestRuleruleprivate final TestNametestNameprivate StringtestLabelprivate Booleanrecordprivate FakeImageLoaderfakeImageLoaderprivate Function0<Unit>screenTimeTextprivate final Resourcesresourcesprivate final ContextapplicationContext
-
Constructor Summary
Constructors Constructor Description ScreenshotTest()
-
Method Summary
Modifier and Type Method Description final FloatgetTolerance()final UnitsetTolerance(Float tolerance)final ComposeContentTestRulegetRule()final TestNamegetTestName()final StringgetTestLabel()final UnitsetTestLabel(String testLabel)final BooleangetRecord()final UnitsetRecord(Boolean record)final FakeImageLoadergetFakeImageLoader()final UnitsetFakeImageLoader(FakeImageLoader fakeImageLoader)final Function0<Unit>getScreenTimeText()final UnitsetScreenTimeText(Function0<Unit> screenTimeText)final ResourcesgetResources()final ContextgetApplicationContext()final UnittakeScreenshot(Boolean round, Function0<Unit> timeText, Function0<Unit> positionIndicator, SuspendFunction0<Unit> checks, Function0<Unit> content)UnitScreenshotDefaults(Boolean round, Function0<Unit> timeText, Function0<Unit> positionIndicator, Function0<Unit> content)final UnittakeComponentScreenshot(SuspendFunction0<Unit> checks, Function1<BoxScope, Unit> content)UnitsaveSnapshot(FileSnapshotting<SemanticsNodeInteraction, Bitmap> snapshotting)UnitComponentDefaults(Function1<BoxScope, Unit> content)UnitDefaultTheme(Function0<Unit> content)final UnittakeScrollableScreenshot(Boolean round, ScreenshotTest.TimeTextMode timeTextMode, ScalingLazyColumnState.Factory columnStateFactory, SuspendFunction1<ScalingLazyColumnState, Unit> checks, Function1<ScalingLazyColumnState, Unit> content)final UnitenableA11yTest()-
-
Method Detail
-
getTolerance
final Float getTolerance()
-
setTolerance
final Unit setTolerance(Float tolerance)
-
getRule
final ComposeContentTestRule getRule()
-
getTestName
final TestName getTestName()
-
getTestLabel
final String getTestLabel()
-
setTestLabel
final Unit setTestLabel(String testLabel)
-
getFakeImageLoader
final FakeImageLoader getFakeImageLoader()
-
setFakeImageLoader
final Unit setFakeImageLoader(FakeImageLoader fakeImageLoader)
-
getScreenTimeText
final Function0<Unit> getScreenTimeText()
-
setScreenTimeText
final Unit setScreenTimeText(Function0<Unit> screenTimeText)
-
getResources
final Resources getResources()
-
getApplicationContext
final Context getApplicationContext()
-
takeScreenshot
final Unit takeScreenshot(Boolean round, Function0<Unit> timeText, Function0<Unit> positionIndicator, SuspendFunction0<Unit> checks, Function0<Unit> content)
-
ScreenshotDefaults
Unit ScreenshotDefaults(Boolean round, Function0<Unit> timeText, Function0<Unit> positionIndicator, Function0<Unit> content)
-
takeComponentScreenshot
final Unit takeComponentScreenshot(SuspendFunction0<Unit> checks, Function1<BoxScope, Unit> content)
-
saveSnapshot
Unit saveSnapshot(FileSnapshotting<SemanticsNodeInteraction, Bitmap> snapshotting)
-
ComponentDefaults
Unit ComponentDefaults(Function1<BoxScope, Unit> content)
-
DefaultTheme
Unit DefaultTheme(Function0<Unit> content)
-
takeScrollableScreenshot
final Unit takeScrollableScreenshot(Boolean round, ScreenshotTest.TimeTextMode timeTextMode, ScalingLazyColumnState.Factory columnStateFactory, SuspendFunction1<ScalingLazyColumnState, Unit> checks, Function1<ScalingLazyColumnState, Unit> content)
-
enableA11yTest
final Unit enableA11yTest()
-
-
-
-