update tests

pull/1386/head
Rich Harris 7 years ago
parent ac4ff538ae
commit 8f8b1308b7

@ -172,24 +172,20 @@ function create_main_fragment(component, ctx) {
} }
return { return {
c: function create() { c() {
div = createElement("div"); div = createElement("div");
div.textContent = "some content"; div.textContent = "some content";
this.h();
},
h: function hydrate() {
component.root._beforecreate.push(div_resize_handler); component.root._beforecreate.push(div_resize_handler);
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(div, target, anchor); insertNode(div, target, anchor);
div_resize_listener = addResizeListener(div, div_resize_handler); div_resize_listener = addResizeListener(div, div_resize_handler);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(div); detachNode(div);
div_resize_listener.cancel(); div_resize_listener.cancel();
}, },

@ -9,24 +9,20 @@ function create_main_fragment(component, ctx) {
} }
return { return {
c: function create() { c() {
div = createElement("div"); div = createElement("div");
div.textContent = "some content"; div.textContent = "some content";
this.h();
},
h: function hydrate() {
component.root._beforecreate.push(div_resize_handler); component.root._beforecreate.push(div_resize_handler);
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(div, target, anchor); insertNode(div, target, anchor);
div_resize_listener = addResizeListener(div, div_resize_handler); div_resize_listener = addResizeListener(div, div_resize_handler);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(div); detachNode(div);
div_resize_listener.cancel(); div_resize_listener.cancel();
}, },

Loading…
Cancel
Save