// updated props in the middle of transitions
// and cancelled the transition halfway
export default {
html: `
outside Foo Foo Foo
inside Foo Foo Foo
`,
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
`);
await component.show();
assert.htmlEqual(target.innerHTML, `
outside Bar Bar Bar
inside Bar Bar Bar
`);
raf.tick(100);
assert.equal(div.foo, 1);
}
};