start updating tests

pull/3945/head
Richard Harris 6 years ago
parent 41597ff055
commit 17f0e4247e

@ -21,10 +21,10 @@ function create_fragment(ctx) {
}, },
m(target, anchor) { m(target, anchor) {
insert(target, button, anchor); insert(target, button, anchor);
foo_action = foo.call(null, button, ctx.foo_function) || ({}); foo_action = foo.call(null, button, ctx[1]) || ({});
}, },
p(changed, ctx) { p(ctx) {
if (is_function(foo_action.update) && changed.bar) foo_action.update.call(null, ctx.foo_function); if (is_function(foo_action.update)) foo_action.update.call(null, ctx[1]);
}, },
i: noop, i: noop,
o: noop, o: noop,
@ -48,10 +48,10 @@ function instance($$self, $$props, $$invalidate) {
const foo_function = () => handleFoo(bar); const foo_function = () => handleFoo(bar);
$$self.$set = $$props => { $$self.$set = $$props => {
if ("bar" in $$props) $$invalidate("bar", bar = $$props.bar); if ("bar" in $$props) $$invalidate(0, bar = $$props.bar);
}; };
return { bar, foo_function }; return [bar, foo_function];
} }
class Component extends SvelteComponent { class Component extends SvelteComponent {

@ -11,13 +11,13 @@ import {
function create_fragment(ctx) { function create_fragment(ctx) {
let dispose; let dispose;
add_render_callback(ctx.onlinestatuschanged); add_render_callback(ctx[1]);
return { return {
c() { c() {
dispose = [ dispose = [
listen(window, "online", ctx.onlinestatuschanged), listen(window, "online", ctx[1]),
listen(window, "offline", ctx.onlinestatuschanged) listen(window, "offline", ctx[1])
]; ];
}, },
m: noop, m: noop,
@ -34,10 +34,10 @@ function instance($$self, $$props, $$invalidate) {
let online; let online;
function onlinestatuschanged() { function onlinestatuschanged() {
$$invalidate("online", online = navigator.onLine); $$invalidate(0, online = navigator.onLine);
} }
return { online, onlinestatuschanged }; return [online, onlinestatuschanged];
} }
class Component extends SvelteComponent { class Component extends SvelteComponent {

@ -21,16 +21,14 @@ function create_fragment(ctx) {
details.innerHTML = `<summary>summary</summary>content details.innerHTML = `<summary>summary</summary>content
`; `;
dispose = listen(details, "toggle", ctx.details_toggle_handler); dispose = listen(details, "toggle", ctx[1]);
}, },
m(target, anchor) { m(target, anchor) {
insert(target, details, anchor); insert(target, details, anchor);
details.open = ctx.open; details.open = ctx[0];
}, },
p(changed, ctx) { p(ctx) {
if (changed.open) { details.open = ctx[0];
details.open = ctx.open;
}
}, },
i: noop, i: noop,
o: noop, o: noop,
@ -45,15 +43,14 @@ function instance($$self, $$props, $$invalidate) {
let { open } = $$props; let { open } = $$props;
function details_toggle_handler() { function details_toggle_handler() {
open = this.open; $$invalidate(0, open = this.open);
$$invalidate("open", open);
} }
$$self.$set = $$props => { $$self.$set = $$props => {
if ("open" in $$props) $$invalidate("open", open = $$props.open); if ("open" in $$props) $$invalidate(0, open = $$props.open);
}; };
return { open, details_toggle_handler }; return [open, details_toggle_handler];
} }
class Component extends SvelteComponent { class Component extends SvelteComponent {

Loading…
Cancel
Save