|
|
|
|
@ -2,7 +2,6 @@ import { tick } from 'svelte';
|
|
|
|
|
import { test } from '../../test';
|
|
|
|
|
|
|
|
|
|
export default test({
|
|
|
|
|
skip: true, // TODO works on https://github.com/sveltejs/svelte/pull/17971
|
|
|
|
|
async test({ assert, target }) {
|
|
|
|
|
await tick();
|
|
|
|
|
const [a_b, a_c, b_d, shift, pop] = target.querySelectorAll('button');
|
|
|
|
|
@ -78,13 +77,11 @@ export default test({
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
pop.click(); // second a resolved, first a/b now obsolete
|
|
|
|
|
// TODO would be nice to show final result here already, right now it doesn't because
|
|
|
|
|
// we have no handle on the already resolved first a anymore
|
|
|
|
|
await tick();
|
|
|
|
|
assert.htmlEqual(
|
|
|
|
|
target.innerHTML,
|
|
|
|
|
`
|
|
|
|
|
a 0 | b 0 | c 0 | d 0
|
|
|
|
|
a 2 | b 2 | c 1 | d 1
|
|
|
|
|
<button>a and b</button>
|
|
|
|
|
<button>a and c</button>
|
|
|
|
|
<button>b and d</button>
|
|
|
|
|
|