update #1844 test for v3

pull/3351/head
Richard Harris 5 years ago
parent 76989eb220
commit a3ab409be5

@ -49,6 +49,8 @@ virtualConsole.sendTo(console);
global.window = new jsdom.JSDOM('<main></main>', {virtualConsole}).window; global.window = new jsdom.JSDOM('<main></main>', {virtualConsole}).window;
global.document = window.document; global.document = window.document;
global.navigator = window.navigator;
global.getComputedStyle = window.getComputedStyle;
global.requestAnimationFrame = null; // placeholder, filled in using set_raf global.requestAnimationFrame = null; // placeholder, filled in using set_raf
// add missing ecmascript globals to window // add missing ecmascript globals to window
@ -57,7 +59,6 @@ for (const key of Object.getOwnPropertyNames(global)) {
} }
export function env() { export function env() {
window._svelteTransitionManager = null;
window.document.title = ''; window.document.title = '';
window.document.body.innerHTML = '<main></main>'; window.document.body.innerHTML = '<main></main>';

@ -0,0 +1,7 @@
<script>
let clientHeight;
</script>
<p bind:clientHeight>
<slot/>
</p>

@ -1,13 +0,0 @@
<Nested ref:nested>
Hello
</Nested>
<script>
import Nested from './Nested.html';
export default {
components: {
Nested
}
};
</script>

@ -0,0 +1,7 @@
<script>
import Nested from './Nested.svelte';
</script>
<Nested>
Hello
</Nested>
Loading…
Cancel
Save