skiko/src/jvmTest/kotlin/org/jetbrains/skia/skottie/AnimationTest.jvm.kt [17:42]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @Test fun canCreateFromFile() { val animation = Animation.makeFromFile( resourcePath("./skottie/test_animation01.json") ) assertEquals("1.42.0", animation.version) assertEquals(Point(32.0f, 32.0f), animation.size) assertEquals(60.0f, animation.fPS) assertEquals(3.0f, animation.duration) assertEquals(0.0f, animation.inPoint) assertEquals(180.0f, animation.outPoint) } @Test fun canCreateFromFileWithBuilder() { val animation = AnimationBuilder().buildFromFile( resourcePath("./skottie/test_animation01.json") ) assertEquals("1.42.0", animation.version) assertEquals(Point(32.0f, 32.0f), animation.size) assertEquals(60.0f, animation.fPS) assertEquals(3.0f, animation.duration) assertEquals(0.0f, animation.inPoint) assertEquals(180.0f, animation.outPoint) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - skiko/src/nativeTest/kotlin/org/jetbrains/skia/skottie/AnimationTest.native.kt [10:35]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @Test fun canCreateFromFile() { val animation = Animation.makeFromFile( resourcePath("./skottie/test_animation01.json") ) assertEquals("1.42.0", animation.version) assertEquals(Point(32.0f, 32.0f), animation.size) assertEquals(60.0f, animation.fPS) assertEquals(3.0f, animation.duration) assertEquals(0.0f, animation.inPoint) assertEquals(180.0f, animation.outPoint) } @Test fun canCreateFromFileWithBuilder() { val animation = AnimationBuilder().buildFromFile( resourcePath("./skottie/test_animation01.json") ) assertEquals("1.42.0", animation.version) assertEquals(Point(32.0f, 32.0f), animation.size) assertEquals(60.0f, animation.fPS) assertEquals(3.0f, animation.duration) assertEquals(0.0f, animation.inPoint) assertEquals(180.0f, animation.outPoint) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -