Skip to content

Commit a3ab409

Browse files
committed
update sveltejs#1844 test for v3
1 parent 76989eb commit a3ab409

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

test/helpers.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ virtualConsole.sendTo(console);
4949

5050
global.window = new jsdom.JSDOM('<main></main>', {virtualConsole}).window;
5151
global.document = window.document;
52+
global.navigator = window.navigator;
53+
global.getComputedStyle = window.getComputedStyle;
5254
global.requestAnimationFrame = null; // placeholder, filled in using set_raf
5355

5456
// add missing ecmascript globals to window
@@ -57,7 +59,6 @@ for (const key of Object.getOwnPropertyNames(global)) {
5759
}
5860

5961
export function env() {
60-
window._svelteTransitionManager = null;
6162
window.document.title = '';
6263
window.document.body.innerHTML = '<main></main>';
6364

test/runtime/samples/component-slot-binding-dimensions-destroys-cleanly/Nested.html

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
let clientHeight;
3+
</script>
4+
5+
<p bind:clientHeight>
6+
<slot/>
7+
</p>

test/runtime/samples/component-slot-binding-dimensions-destroys-cleanly/main.html

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
import Nested from './Nested.svelte';
3+
</script>
4+
5+
<Nested>
6+
Hello
7+
</Nested>

0 commit comments

Comments
 (0)