update tests

pull/1389/head
Rich Harris 7 years ago
parent c01cde9065
commit 60516aff0d

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,19 +4,19 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
this.c = noop; this.c = noop;
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,19 +4,19 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
this.c = noop; this.c = noop;
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -10,21 +10,21 @@ function create_main_fragment(component, ctx) {
}); });
return { return {
c: function create() { c() {
widget._fragment.c(); widget._fragment.c();
}, },
m: function mount(target, anchor) { m(target, anchor) {
widget._mount(target, anchor); widget._mount(target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
widget._unmount(); widget._unmount();
}, },
d: function destroy() { d() {
widget.destroy(false); widget.destroy(false);
} }
}; };

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "widget"; p.textContent = "widget";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -10,21 +10,21 @@ function create_main_fragment(component, ctx) {
}); });
return { return {
c: function create() { c() {
widget._fragment.c(); widget._fragment.c();
}, },
m: function mount(target, anchor) { m(target, anchor) {
widget._mount(target, anchor); widget._mount(target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
widget._unmount(); widget._unmount();
}, },
d: function destroy() { d() {
widget.destroy(false); widget.destroy(false);
} }
}; };

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "widget"; p.textContent = "widget";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -10,21 +10,21 @@ function create_main_fragment(component, ctx) {
}); });
return { return {
c: function create() { c() {
widget._fragment.c(); widget._fragment.c();
}, },
m: function mount(target, anchor) { m(target, anchor) {
widget._mount(target, anchor); widget._mount(target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
widget._unmount(); widget._unmount();
}, },
d: function destroy() { d() {
widget.destroy(false); widget.destroy(false);
} }
}; };

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "widget"; p.textContent = "widget";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -10,21 +10,21 @@ function create_main_fragment(component, ctx) {
}); });
return { return {
c: function create() { c() {
widget._fragment.c(); widget._fragment.c();
}, },
m: function mount(target, anchor) { m(target, anchor) {
widget._mount(target, anchor); widget._mount(target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
widget._unmount(); widget._unmount();
}, },
d: function destroy() { d() {
widget.destroy(false); widget.destroy(false);
} }
}; };

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "widget"; p.textContent = "widget";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -10,21 +10,21 @@ function create_main_fragment(component, ctx) {
}); });
return { return {
c: function create() { c() {
widget._fragment.c(); widget._fragment.c();
}, },
m: function mount(target, anchor) { m(target, anchor) {
widget._mount(target, anchor); widget._mount(target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
widget._unmount(); widget._unmount();
}, },
d: function destroy() { d() {
widget.destroy(false); widget.destroy(false);
} }
}; };

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "widget"; p.textContent = "widget";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -10,21 +10,21 @@ function create_main_fragment(component, ctx) {
}); });
return { return {
c: function create() { c() {
widget._fragment.c(); widget._fragment.c();
}, },
m: function mount(target, anchor) { m(target, anchor) {
widget._mount(target, anchor); widget._mount(target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
widget._unmount(); widget._unmount();
}, },
d: function destroy() { d() {
widget.destroy(false); widget.destroy(false);
} }
}; };

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "widget"; p.textContent = "widget";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -12,25 +12,25 @@ var Main = (function(answer) { "use strict";
var p, text, text_1; var p, text, text_1;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
text = createText("The answer is "); text = createText("The answer is ");
text_1 = createText(ctx.answer); text_1 = createText(ctx.answer);
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
appendNode(text, p); appendNode(text, p);
appendNode(text_1, p); appendNode(text_1, p);
}, },
p: function update(changed, ctx) { p(changed, ctx) {
if (changed.answer) { if (changed.answer) {
text_1.data = ctx.answer; text_1.data = ctx.answer;
} }
}, },
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -12,25 +12,25 @@ var Main = (function(answer) { "use strict";
var p, text, text_1; var p, text, text_1;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
text = createText("The answer is "); text = createText("The answer is ");
text_1 = createText(ctx.answer); text_1 = createText(ctx.answer);
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
appendNode(text, p); appendNode(text, p);
appendNode(text_1, p); appendNode(text_1, p);
}, },
p: function update(changed, ctx) { p(changed, ctx) {
if (changed.answer) { if (changed.answer) {
text_1.data = ctx.answer; text_1.data = ctx.answer;
} }
}, },
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,18 +4,18 @@ function create_main_fragment(component, ctx) {
var p; var p;
return { return {
c: function create() { c() {
p = createElement("p"); p = createElement("p");
p.textContent = "Hello world!"; p.textContent = "Hello world!";
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
p: noop, p: noop,
u: function unmount() { u() {
detachNode(p); detachNode(p);
}, },

@ -4,25 +4,25 @@ function create_main_fragment(component, ctx) {
var h1, text, text_1; var h1, text, text_1;
return { return {
c: function create() { c() {
h1 = createElement("h1"); h1 = createElement("h1");
text = createText("Hello "); text = createText("Hello ");
text_1 = createText(ctx.$name); text_1 = createText(ctx.$name);
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(h1, target, anchor); insertNode(h1, target, anchor);
appendNode(text, h1); appendNode(text, h1);
appendNode(text_1, h1); appendNode(text_1, h1);
}, },
p: function update(changed, ctx) { p(changed, ctx) {
if (changed.$name) { if (changed.$name) {
text_1.data = ctx.$name; text_1.data = ctx.$name;
} }
}, },
u: function unmount() { u() {
detachNode(h1); detachNode(h1);
}, },

@ -4,25 +4,25 @@ function create_main_fragment(component, ctx) {
var h1, text, text_1; var h1, text, text_1;
return { return {
c: function create() { c() {
h1 = createElement("h1"); h1 = createElement("h1");
text = createText("Hello "); text = createText("Hello ");
text_1 = createText(ctx.$name); text_1 = createText(ctx.$name);
}, },
m: function mount(target, anchor) { m(target, anchor) {
insertNode(h1, target, anchor); insertNode(h1, target, anchor);
appendNode(text, h1); appendNode(text, h1);
appendNode(text_1, h1); appendNode(text_1, h1);
}, },
p: function update(changed, ctx) { p(changed, ctx) {
if (changed.$name) { if (changed.$name) {
text_1.data = ctx.$name; text_1.data = ctx.$name;
} }
}, },
u: function unmount() { u() {
detachNode(h1); detachNode(h1);
}, },

Loading…
Cancel
Save