Home
last modified time | relevance | path

Searched refs:composeRule (Results 1 – 5 of 5) sorted by relevance

/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DComposeFeatureCapturesTest.kt52 @get:Rule(order = 1) val composeRule = createComposeRule() constant in platform.test.motion.compose.ComposeFeatureCapturesTest
56 composeRule.setContent { Box(Modifier.testTag("box").size(width = 10.dp, height = 20.dp)) } in dpSize_capturesDataPoint()
58 val semanticsNode = composeRule.onNode(hasTestTag("box")).fetchSemanticsNode() in dpSize_capturesDataPoint()
65 composeRule.setContent { Box(Modifier.testTag("box").size(width = 10.dp, height = 20.dp)) } in size_capturesDataPoint()
67 val semanticsNode = composeRule.onNode(hasTestTag("box")).fetchSemanticsNode() in size_capturesDataPoint()
74 composeRule.setContent { in positionInRoot_capturesDataPoint()
80 val semanticsNode = composeRule.onNode(hasTestTag("box")).fetchSemanticsNode() in positionInRoot_capturesDataPoint()
87 composeRule.setContent { in alpha_capturesDataPoint()
98 val semanticsNode = composeRule.onNode(hasTestTag("box")).fetchSemanticsNode() in alpha_capturesDataPoint()
104 composeRule.setContent { in alpha_withoutExport_throws()
[all …]
DMotionTestValuesTest.kt51 private val composeRule: ComposeContentTestRule constant in platform.test.motion.compose.MotionTestValuesTest
56 composeRule.setContent { in motionTestValueOfNode_readsValueOfAnnotatedNode()
60 assertThat(composeRule.motionTestValueOfNode(foo)).isEqualTo(0.5f) in motionTestValueOfNode_readsValueOfAnnotatedNode()
65 composeRule.setContent { in motionTestValueOfNode_multipleMatchingNodes_throws()
71 Assert.assertThrows(AssertionError::class.java) { composeRule.motionTestValueOfNode(foo) } in motionTestValueOfNode_multipleMatchingNodes_throws()
76 composeRule.setContent { EnableMotionTestValueCollection { Box(Modifier.testTag("foo")) } } in motionTestValueOfNode_valueNotExported_throws()
78 composeRule.motionTestValueOfNode(foo, hasTestTag("foo")) in motionTestValueOfNode_valueNotExported_throws()
84 composeRule.setContent { in motionTestValueOfNode_specifySelector()
91 assertThat(composeRule.motionTestValueOfNode(foo, matcher = hasTestTag("foo"))) in motionTestValueOfNode_specifySelector()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/values/
DMotionTestValueTest.kt35 @get:Rule val composeRule = createComposeRule() constant in platform.test.motion.compose.values.MotionTestValueTest
39 composeRule.setContent { Text("foo", Modifier.motionTestValues { fail() }) } in modifier_isIgnored()
41 val semanticsNode = composeRule.onNodeWithText("foo").fetchSemanticsNode() in modifier_isIgnored()
47 composeRule.setContent { in modifier_withEnableMotionTesting_isAttached()
53 val semanticsNode = composeRule.onNodeWithText("foo").fetchSemanticsNode() in modifier_withEnableMotionTesting_isAttached()
/platform_testing/libraries/screenshot/utils/compose/src/platform/test/screenshot/utils/compose/
DComposeScreenshotTestRule.kt62 val composeRule = createAndroidComposeRule<ScreenshotActivity>() constant
67 .around(composeRule)
94 viewFinder: () -> SemanticsNodeInteraction = { composeRule.onRoot() },
99 val activity = composeRule.activity
107 composeRule.setContent { in <lambda>()
135 composeRule.waitForIdle()
147 composeRule.activityRule, in dialogScreenshotTest()
151 waitForIdle = { composeRule.waitForIdle() }, in dialogScreenshotTest()
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DComposeToolkit.kt104 val composeRule = createComposeRule(testScope.coroutineContext) in createComposeMotionTestRule() constant
107 ComposeToolkit(composeRule, testScope), in createComposeMotionTestRule()
109 extraRules = RuleChain.outerRule(deviceEmulationRule).around(composeRule) in createComposeMotionTestRule()