unskip more tests

entangle-batches-2
Simon Holthausen 7 days ago
parent 6290e6ed19
commit b610708f3d
No known key found for this signature in database

@ -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');

@ -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');
@ -82,7 +81,7 @@ export default test({
assert.htmlEqual(
target.innerHTML,
`
a 1 | b 2 | c 0 | d 1
a 0 | b 0 | c 0 | d 0
<button>a and b</button>
<button>a and c</button>
<button>b and d</button>

@ -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>

@ -2,7 +2,6 @@ import { tick } from 'svelte';
import { test } from '../../test';
export default test({
skip: true,
async test({ assert, target }) {
await tick();
const [a_b_fork, a_c, b_d, shift, pop, commit] = target.querySelectorAll('button');

@ -2,7 +2,7 @@ import { tick } from 'svelte';
import { test } from '../../test';
export default test({
skip: true, // TODO this one is tricky
skip: true, // TODO this one is tricky; are the assertions actually correct still? why don't we need two b.click()s at the end? (if so the test passes)
async test({ assert, target }) {
const [increment, a, b] = target.querySelectorAll('button');

@ -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 }) {
const [x, y, shift, pop, commit] = target.querySelectorAll('button');
@ -37,6 +36,7 @@ export default test({
`
);
// commit entangled fork with existing batch, so nothing happens yet
shift.click();
await tick();
assert.htmlEqual(
@ -47,13 +47,6 @@ export default test({
<button>shift</button>
<button>pop</button>
<button>commit</button>
universe
universe
"universe"
universe
universe
universe
"universe"
<hr>
`
);

Loading…
Cancel
Save