Skip to content

Commit 153a116

Browse files
committed
test cleanup
1 parent f7e4d0d commit 153a116

File tree

1 file changed

+8
-1
lines changed
  • test/runtime/samples/transition-css-in-out-in-with-static

1 file changed

+8
-1
lines changed

test/runtime/samples/transition-css-in-out-in-with-static/_config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@ export default {
1616
raf.tick(75);
1717
component.visible = true;
1818

19-
// reset original styles
19+
// reset to in styles (in transition in progress)
2020
assert.equal(div.style.animation, '__svelte_3809512021_1 100ms linear 0ms 1 both');
2121
assert.equal(div.className, '__svelte_2375698960');
22+
23+
// 100ms after in transition started at 75
24+
raf.tick(175);
25+
26+
// reset original styles after in transition is complete
27+
assert.equal(div.style.animation, '');
28+
assert.equal(div.className, '');
2229
}
2330
};

0 commit comments

Comments
 (0)