Shagen Ogandzhanian
3 years ago
2 changed files with 30 additions and 0 deletions
@ -0,0 +1,13 @@
|
||||
/* |
||||
* Copyright 2020-2021 JetBrains s.r.o. and respective authors and developers. |
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file. |
||||
*/ |
||||
|
||||
package org.jetbrains.compose.web.skiko |
||||
|
||||
import org.jetbrains.compose.web.dom.ElementScope |
||||
import org.w3c.dom.HTMLCanvasElement |
||||
|
||||
fun ElementScope<HTMLCanvasElement>.ping() { |
||||
println("PING!!!") |
||||
} |
@ -0,0 +1,17 @@
|
||||
package org.jetbrains.compose.web.core.tests |
||||
|
||||
import kotlin.test.* |
||||
import org.jetbrains.compose.web.testutils.* |
||||
import org.jetbrains.compose.web.dom.* |
||||
import org.jetbrains.compose.web.skiko.ping |
||||
|
||||
class CanvasSkikoTests { |
||||
@Test |
||||
fun canvasSkikoTest() = runTest() { |
||||
composition { |
||||
Canvas() { |
||||
ping() |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue