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;
return {
c: function create() {
c() {
p = createElement("p");
p.textContent = "Hello world!";
},
m: function mount(target, anchor) {
m(target, anchor) {
insertNode(p, target, anchor);
},
p: noop,
u: function unmount() {
u() {
detachNode(p);
},

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save