Skip to content

Commit

Permalink
macOs. fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igordmn committed Jan 26, 2021
1 parent 9fedd9a commit 034e408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import kotlinx.coroutines.*
import kotlinx.coroutines.swing.Swing
import org.jetbrains.skija.*
import org.junit.Test
import java.awt.Point
import java.awt.event.WindowEvent
import java.util.*
import javax.swing.JFrame
Expand Down Expand Up @@ -69,7 +70,6 @@ native crash in SkiaWindowTest "render single window"
}

init {
setLocation(200,200)
setSize(width, height)
defaultCloseOperation = WindowConstants.DISPOSE_ON_CLOSE
layer.renderer = object : SkiaRenderer {
Expand Down Expand Up @@ -132,8 +132,10 @@ native crash in SkiaWindowTest "render single window"
}
}

val windows = (1..3).map {
TestWindow(width = 40, height = 20, frameCount = 300, deviatedTerminalCount = 10)
val windows = (1..3).map { index ->
TestWindow(width = 40, height = 20, frameCount = 300, deviatedTerminalCount = 10).apply {
location = Point((index + 1) * 200, 200)
}
}
delay(1000)
windows.forEach(TestWindow::startCollect)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 034e408

Please sign in to comment.