Skip to content

Commit 723b4f6

Browse files
committed
Fix typo
1 parent 0507544 commit 723b4f6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

skiko/src/commonTest/kotlin/org/jetbrains/skia/DirectContextTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class DirectContextNativeTest {
88

99
@Test
1010
fun resourceCacheLimitTest() {
11-
if (!TestGlContext.isAvailabale()) return
11+
if (!TestGlContext.isAvailable()) return
1212

1313
TestGlContext.run {
1414
DirectContext.makeGL().useContext { context ->

skiko/src/commonTest/kotlin/org/jetbrains/skia/SurfaceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class SurfaceTest {
105105

106106
@Test
107107
fun canMakeRenderTarget() {
108-
if (!TestGlContext.isAvailabale()) return
108+
if (!TestGlContext.isAvailable()) return
109109

110110
val pixels = TestGlContext.run {
111111
DirectContext.makeGL().useContext { ctx ->

skiko/src/commonTest/kotlin/org/jetbrains/skiko/tests/TestHelpers.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal class TestGlContext : Managed(TestGlContext_nCreate(), FinalizerHolder.
2222

2323
companion object {
2424

25-
fun isAvailabale(): Boolean {
25+
fun isAvailable(): Boolean {
2626
if (hostOs != OS.Linux || kotlinBackend != KotlinBackend.Native) {
2727
// TODO implement for other platforms and render targets
2828
return false
@@ -31,7 +31,7 @@ internal class TestGlContext : Managed(TestGlContext_nCreate(), FinalizerHolder.
3131
}
3232

3333
inline fun <T> run(block: TestGlContext.() -> T): T {
34-
check(isAvailabale()) { "TestGlContext is not available" }
34+
check(isAvailable()) { "TestGlContext is not available" }
3535
return TestGlContext().use {
3636
it.makeCurrent()
3737
val result = it.block()

0 commit comments

Comments
 (0)