failing test for #10511

pull/10512/head
Rich Harris 3 years ago
parent 1700e47858
commit 3be72c76e4

@ -0,0 +1,13 @@
import { test } from '../../assert';
import { log } from './log.js';
export default test({
async test({ assert }) {
await new Promise((fulfil) => setTimeout(fulfil, 0));
assert.deepEqual(log, [
[false, 0, 0],
[true, 100, 100]
]);
}
});

@ -0,0 +1,23 @@
<script>
import { log } from './log.js';
let w = 0;
let h = 0;
/** @type {HTMLElement} */
let div;
$: {
log.push([!!div, w, h]);
}
</script>
<div bind:this={div} bind:clientWidth={w} bind:clientHeight={h} class="box"></div>
<style>
.box {
width: 100px;
height: 100px;
background: #ff3e00;
}
</style>
Loading…
Cancel
Save