Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
034e4087
Commit
034e4087
authored
Jan 26, 2021
by
Igor Demin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macOs. fix tests
parent
9fedd9aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
SkiaWindowPerformanceTest.kt
...t/kotlin/org/jetbrains/skiko/SkiaWindowPerformanceTest.kt
+5
-3
org_jetbrains_skiko_SkiaWindowTest_render_text_MacOS.png
.../org_jetbrains_skiko_SkiaWindowTest_render_text_MacOS.png
+0
-0
No files found.
samples/SkijaInjectSample/src/test/kotlin/org/jetbrains/skiko/SkiaWindowPerformanceTest.kt
View file @
034e4087
...
...
@@ -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
...
...
@@ -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
{
...
...
@@ -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
)
...
...
samples/SkijaInjectSample/src/test/screenshots/org_jetbrains_skiko_SkiaWindowTest_render_text_MacOS.png
View replaced file @
9fedd9aa
View file @
034e4087
1.18 KB
|
W:
|
H:
1.29 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment