File tree 5 files changed +16
-17
lines changed
runtime/samples/component-slot-binding-dimensions-destroys-cleanly
5 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ virtualConsole.sendTo(console);
49
49
50
50
global . window = new jsdom . JSDOM ( '<main></main>' , { virtualConsole} ) . window ;
51
51
global . document = window . document ;
52
+ global . navigator = window . navigator ;
53
+ global . getComputedStyle = window . getComputedStyle ;
52
54
global . requestAnimationFrame = null ; // placeholder, filled in using set_raf
53
55
54
56
// add missing ecmascript globals to window
@@ -57,7 +59,6 @@ for (const key of Object.getOwnPropertyNames(global)) {
57
59
}
58
60
59
61
export function env ( ) {
60
- window . _svelteTransitionManager = null ;
61
62
window . document . title = '' ;
62
63
window . document . body . innerHTML = '<main></main>' ;
63
64
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <script >
2
+ let clientHeight;
3
+ </script >
4
+
5
+ <p bind:clientHeight >
6
+ <slot />
7
+ </p >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <script >
2
+ import Nested from ' ./Nested.svelte' ;
3
+ </script >
4
+
5
+ <Nested >
6
+ Hello
7
+ </Nested >
You can’t perform that action at this time.
0 commit comments