Skip to content

Commit c48a54f

Browse files
committed
attempt 1
1 parent fda56ba commit c48a54f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

compose/ui/ui/src/webTest/kotlin/androidx/compose/ui/OnCanvasTests.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ internal class WebApplicationScope(
173173
}
174174

175175
awaitWithYield()
176+
177+
awaitAnimationFrame()
176178
}
177179

178180
/**

compose/ui/ui/src/webTest/kotlin/androidx/compose/ui/platform/a11y/CfWA11YTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ class CfWA11YTest : OnCanvasTests {
302302

303303
var debounceCounter = 0
304304

305-
repeat(20) {
306-
// Change the state every 55ms. Such changes must be "debounced", (time delta is less than 100ms)
305+
repeat(50) {
306+
// Change the state every 25ms. Such changes must be "debounced", (time delta is less than 100ms)
307307
show1 = !show1
308-
realDelay(55)
308+
realDelay(25)
309309

310310
if (changesAppliedTime == 0L) {
311311
// No changes expected yet due to debounce

0 commit comments

Comments
 (0)