Skip to content

Commit bfad669

Browse files
committed
Ignore failed scroll fling tests on iOS (with TODO)
1 parent ce53988 commit bfad669

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

compose/foundation/foundation/src/commonTest/kotlin/kotlinx/test/IgnoreTargets.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ package kotlinx.test
2222
expect annotation class IgnoreWasmTarget()
2323

2424
@OptionalExpectation
25-
expect annotation class IgnoreJsTarget()
25+
expect annotation class IgnoreJsTarget()
26+
27+
@OptionalExpectation
28+
expect annotation class IgnoreIosTarget()

compose/foundation/foundation/src/skikoTest/kotlin/androidx/compose/foundation/copyPasteAndroidTests/ScrollableTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ import kotlinx.coroutines.Job
8181
import kotlinx.coroutines.coroutineScope
8282
import kotlinx.coroutines.launch
8383
import kotlinx.coroutines.withContext
84+
import kotlinx.test.IgnoreIosTarget
8485

8586
@OptIn(ExperimentalTestApi::class)
8687
class ScrollableTest {
@@ -1155,6 +1156,7 @@ class ScrollableTest {
11551156
}
11561157

11571158
@Test
1159+
@IgnoreIosTarget // https://youtrack.jetbrains.com/issue/CMP-8401
11581160
fun scrollable_nestedFling() = runComposeUiTest {
11591161
var innerDrag = 0f
11601162
var outerDrag = 0f
@@ -2130,6 +2132,7 @@ class ScrollableTest {
21302132
}
21312133

21322134
@Test
2135+
@IgnoreIosTarget // https://youtrack.jetbrains.com/issue/CMP-8401
21332136
fun scrollable_flingBehaviourCalled() = runComposeUiTest {
21342137
var total = 0f
21352138
val controller =
@@ -2164,6 +2167,7 @@ class ScrollableTest {
21642167
}
21652168

21662169
@Test
2170+
@IgnoreIosTarget // https://youtrack.jetbrains.com/issue/CMP-8401
21672171
fun scrollable_flingBehaviourCalled_reversed() = runComposeUiTest {
21682172
var total = 0f
21692173
val controller =
@@ -2869,6 +2873,7 @@ class ScrollableTest {
28692873
}
28702874

28712875
@Test
2876+
@IgnoreIosTarget // https://youtrack.jetbrains.com/issue/CMP-8401
28722877
fun disableSystemAnimations_defaultFlingBehaviorShouldContinueToWork() = runComposeUiTest {
28732878

28742879
val controller = ScrollableState { 0f }
@@ -3124,6 +3129,7 @@ class ScrollableTest {
31243129
}
31253130

31263131
@Test
3132+
@IgnoreIosTarget // https://youtrack.jetbrains.com/issue/CMP-8401
31273133
fun onDensityChange_shouldUpdateFlingBehavior() = runComposeUiTest {
31283134
var density by mutableStateOf(density)
31293135
var flingDelta = 0f
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2025 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package kotlinx.test
18+
19+
actual typealias IgnoreIosTarget = kotlin.test.Ignore

0 commit comments

Comments
 (0)