move tests to runtime section

pull/3529/head
Richard Harris 5 years ago
parent 8325ca206b
commit d80bcadf3c

@ -36,7 +36,7 @@ export function blur(node: Element, {
delay,
duration,
easing,
css: (t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`
css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`
};
}

@ -1,72 +0,0 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_data,
space,
text
} from "svelte/internal";
function create_fragment(ctx) {
var h1, t0, t1, t2;
return {
c() {
h1 = element("h1");
t0 = text(ctx.foo);
t1 = space();
t2 = text(ctx.eid);
},
m(target, anchor) {
insert(target, h1, anchor);
append(h1, t0);
append(h1, t1);
append(h1, t2);
},
p(changed, ctx) {
if (changed.foo) {
set_data(t0, ctx.foo);
}
if (changed.eid) {
set_data(t2, ctx.eid);
}
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(h1);
}
}
};
}
function instance($$self, $$props, $$invalidate) {
let eid = 1;
let foo;
let employees = [
{id: eid = (foo = 2), name: 'xxx'},
]; $$invalidate('foo', foo); $$invalidate('eid', eid);
return { eid, foo };
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
}
}
export default Component;

@ -1,68 +0,0 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_data,
space,
text
} from "svelte/internal";
function create_fragment(ctx) {
var h1, t0, t1, t2;
return {
c() {
h1 = element("h1");
t0 = text(ctx.foo1);
t1 = space();
t2 = text(ctx.foo2);
},
m(target, anchor) {
insert(target, h1, anchor);
append(h1, t0);
append(h1, t1);
append(h1, t2);
},
p(changed, ctx) {
if (changed.foo1) {
set_data(t0, ctx.foo1);
}
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(h1);
}
}
};
}
function instance($$self, $$props, $$invalidate) {
let foo1;
let foo2;
for (let bar = (foo1 = 0); bar < 5; bar += 1) {
$$invalidate('foo1', foo1 = foo2); $$invalidate('foo1', foo1);
}
return { foo1, foo2 };
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
}
}
export default Component;

@ -1,65 +0,0 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_data,
space,
text
} from "svelte/internal";
function create_fragment(ctx) {
var h1, t0, t1, t2;
return {
c() {
h1 = element("h1");
t0 = text(ctx.foo);
t1 = space();
t2 = text(ctx.bar);
},
m(target, anchor) {
insert(target, h1, anchor);
append(h1, t0);
append(h1, t1);
append(h1, t2);
},
p(changed, ctx) {
if (changed.foo) {
set_data(t0, ctx.foo);
}
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(h1);
}
}
};
}
function instance($$self, $$props, $$invalidate) {
let foo;
let bar = (foo = 1); $$invalidate('foo', foo);
return { foo, bar };
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
}
}
export default Component;

@ -1,70 +0,0 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_data,
space,
text
} from "svelte/internal";
function create_fragment(ctx) {
var h1, t0, t1, t2;
return {
c() {
h1 = element("h1");
t0 = text(ctx.foo);
t1 = space();
t2 = text(ctx.bar);
},
m(target, anchor) {
insert(target, h1, anchor);
append(h1, t0);
append(h1, t1);
append(h1, t2);
},
p(changed, ctx) {
if (changed.foo) {
set_data(t0, ctx.foo);
}
if (changed.bar) {
set_data(t2, ctx.bar);
}
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(h1);
}
}
};
}
function instance($$self, $$props, $$invalidate) {
let foo;
let bar;
$$invalidate('bar', bar = (foo = 1)); $$invalidate('foo', foo);
return { foo, bar };
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
}
}
export default Component;

@ -0,0 +1,3 @@
export default {
html: `<h1>1 1</h1>`
};

@ -0,0 +1,3 @@
export default {
html: `<h1>1 1</h1>`
};

@ -0,0 +1,3 @@
export default {
html: `<h1>0 0</h1>`
};

@ -2,7 +2,7 @@
let foo1;
let foo2;
for (let bar = (foo1 = 0); bar < 5; bar += 1) {
foo1 = foo2;
foo2 = foo1;
}
</script>
Loading…
Cancel
Save