// updated props in the middle of transitions
// and cancelled the transition halfway
// + spreaded props + overflow context
export default {
html: `
outside Foo Foo Foo
inside Foo Foo Foo
0
`,
props: {
props: 'Foo'
},
async test({ assert, component, target, raf }) {
await component.hide();
const [, div] = target.querySelectorAll('div');
raf.tick(50);
assert.equal(div.foo, 0.5);
component.props = 'Bar';
assert.htmlEqual(target.innerHTML, `
outside Bar Bar Bar
inside Foo Foo Foo
0
`);
await component.show();
assert.htmlEqual(target.innerHTML, `
outside Bar Bar Bar
inside Bar Bar Bar
0
`);
raf.tick(100);
assert.equal(div.foo, 1);
}
};