add 'noop' param to some more tests

pull/5639/head
Ivan Hofer 5 years ago
parent c0ac80fbda
commit 7bd2ed6096

@ -60,7 +60,7 @@ function link(node) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -2,6 +2,7 @@
import {
SvelteComponent,
append,
appendStyleIfNotPresent,
attr,
detach,
element,
@ -13,11 +14,8 @@ import {
text
} from "svelte/internal";
function add_css() {
var style = element("style");
style.id = "svelte-1a7i8ec-style";
style.textContent = "p.svelte-1a7i8ec{color:red}";
append(document.head, style);
function add_css(customStyleTag) {
appendStyleIfNotPresent(customStyleTag || document.head, "svelte-1a7i8ec-style", "p.svelte-1a7i8ec{color:red}");
}
function create_fragment(ctx) {
@ -58,8 +56,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
if (!document.getElementById("svelte-1a7i8ec-style")) add_css();
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 }, noop);
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 }, add_css);
}
}

@ -48,7 +48,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, not_equal, {});
init(this, options, instance, create_fragment, not_equal, {}, noop);
}
}

@ -48,7 +48,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, not_equal, {});
init(this, options, instance, create_fragment, not_equal, {}, noop);
}
}

@ -3,6 +3,7 @@ import {
SvelteComponent,
component_subscribe,
init,
noop,
safe_not_equal,
set_store_value
} from "svelte/internal";
@ -23,7 +24,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, { increment: 0 });
init(this, options, instance, null, safe_not_equal, { increment: 0 }, noop);
}
get increment() {

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
function instance($$self, $$props, $$invalidate) {
let { x } = $$props;
@ -22,7 +22,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, { x: 0, a: 1, b: 2 });
init(this, options, instance, null, safe_not_equal, { x: 0, a: 1, b: 2 }, noop);
}
get a() {

@ -1,7 +1,7 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
appendStyleIfNotPresent,
attr,
detach,
element,
@ -11,11 +11,8 @@ import {
safe_not_equal
} from "svelte/internal";
function add_css() {
var style = element("style");
style.id = "svelte-1slhpfn-style";
style.textContent = "@media(min-width: 1px){div.svelte-1slhpfn{color:red}}";
append(document.head, style);
function add_css(customStyleTag) {
appendStyleIfNotPresent(customStyleTag || document.head, "svelte-1slhpfn-style", "@media(min-width: 1px){div.svelte-1slhpfn{color:red}}");
}
function create_fragment(ctx) {
@ -41,8 +38,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
if (!document.getElementById("svelte-1slhpfn-style")) add_css();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, add_css);
}
}

@ -45,7 +45,8 @@ class Component extends SvelteElement {
null,
create_fragment,
safe_not_equal,
{}
{},
noop
);
if (options) {

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
import { onMount } from "svelte";
@ -20,7 +20,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, { foo: 0 });
init(this, options, instance, null, safe_not_equal, { foo: 0 }, noop);
}
}

@ -45,7 +45,7 @@ function make_uppercase() {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -47,7 +47,7 @@ const func = () => import("./Foo.svelte");
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
function instance($$self) {
const a = 1 + 2;
@ -9,7 +9,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, {});
init(this, options, instance, null, safe_not_equal, {}, noop);
}
}

@ -46,7 +46,7 @@ const touchstart_handler = e => e.preventDefault();
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -86,7 +86,7 @@ function handleClick() {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -40,7 +40,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -38,7 +38,7 @@ function get_answer() {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -38,7 +38,7 @@ function get_answer() {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -57,7 +57,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -66,7 +66,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, { style: 0, key: 1, value: 2 });
init(this, options, instance, create_fragment, safe_not_equal, { style: 0, key: 1, value: 2 }, noop);
}
}

@ -35,7 +35,7 @@ let color = "red";
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -83,7 +83,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, {});
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
}
}

@ -33,7 +33,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -215,7 +215,13 @@ class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, {
init(
this,
options,
instance,
create_fragment,
safe_not_equal,
{
buffered: 0,
seekable: 1,
played: 2,
@ -227,7 +233,9 @@ class Component extends SvelteComponent {
playbackRate: 8,
seeking: 9,
ended: 10
}, noop);
},
noop
);
}
}

@ -59,7 +59,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -34,7 +34,7 @@ let name = "world";
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
function instance($$self, $$props, $$invalidate) {
let { x } = $$props;
@ -26,7 +26,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, { x: 0 });
init(this, options, instance, null, safe_not_equal, { x: 0 }, noop);
}
}

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
function instance($$self, $$props, $$invalidate) {
let { a = 1 } = $$props;
@ -22,7 +22,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, { a: 0, b: 1 });
init(this, options, instance, null, safe_not_equal, { a: 0, b: 1 }, noop);
}
}

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
const SOME_CONSTANT = 42;
@ -14,7 +14,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, { foo: 0 });
init(this, options, instance, null, safe_not_equal, { foo: 0 }, noop);
}
get foo() {

@ -39,7 +39,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -32,7 +32,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, {});
init(this, options, null, create_fragment, safe_not_equal, {}, noop);
}
}

@ -115,12 +115,20 @@ class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, {
init(
this,
options,
instance,
create_fragment,
safe_not_equal,
{
currentTime: 0,
videoHeight: 1,
videoWidth: 2,
offsetWidth: 3
}, noop);
},
noop
);
}
}

Loading…
Cancel
Save