From 153a1163bf769503638c3e6e670094e03452f03a Mon Sep 17 00:00:00 2001 From: Chris Chua Date: Sun, 28 Mar 2021 19:12:57 -0700 Subject: [PATCH] test cleanup --- .../transition-css-in-out-in-with-static/_config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/runtime/samples/transition-css-in-out-in-with-static/_config.js b/test/runtime/samples/transition-css-in-out-in-with-static/_config.js index 43937f199e42..39a4401e8a5a 100644 --- a/test/runtime/samples/transition-css-in-out-in-with-static/_config.js +++ b/test/runtime/samples/transition-css-in-out-in-with-static/_config.js @@ -16,8 +16,15 @@ export default { raf.tick(75); component.visible = true; - // reset original styles + // reset to in styles (in transition in progress) assert.equal(div.style.animation, '__svelte_3809512021_1 100ms linear 0ms 1 both'); assert.equal(div.className, '__svelte_2375698960'); + + // 100ms after in transition started at 75 + raf.tick(175); + + // reset original styles after in transition is complete + assert.equal(div.style.animation, ''); + assert.equal(div.className, ''); } };