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

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

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

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* 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) { function instance($$self, $$props, $$invalidate) {
let { x } = $$props; let { x } = $$props;
@ -22,7 +22,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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() { get a() {

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

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

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* 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"; import { onMount } from "svelte";
@ -20,7 +20,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 */ /* 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) { function instance($$self) {
const a = 1 + 2; const a = 1 + 2;
@ -9,7 +9,7 @@ function instance($$self) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); super();
init(this, options, null, create_fragment, safe_not_equal, {}); init(this, options, null, create_fragment, safe_not_equal, {}, noop);
} }
} }

@ -76,17 +76,17 @@ function create_fragment(ctx) {
} }
function handleTouchstart() { function handleTouchstart() {
} // ... } // ...
function handleClick() { function handleClick() {
} // ... } // ...
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); super();
init(this, options, null, create_fragment, safe_not_equal, {}); init(this, options, null, create_fragment, safe_not_equal, {}, noop);
} }
} }

@ -215,19 +215,27 @@ class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); super();
init(this, options, instance, create_fragment, safe_not_equal, { init(
buffered: 0, this,
seekable: 1, options,
played: 2, instance,
currentTime: 3, create_fragment,
duration: 4, safe_not_equal,
paused: 5, {
volume: 6, buffered: 0,
muted: 7, seekable: 1,
playbackRate: 8, played: 2,
seeking: 9, currentTime: 3,
ended: 10 duration: 4,
}, noop); paused: 5,
volume: 6,
muted: 7,
playbackRate: 8,
seeking: 9,
ended: 10
},
noop
);
} }
} }

@ -59,7 +59,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 */ /* 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) { function instance($$self, $$props, $$invalidate) {
let { x } = $$props; let { x } = $$props;
@ -26,7 +26,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 */ /* 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) { function instance($$self, $$props, $$invalidate) {
let { a = 1 } = $$props; let { a = 1 } = $$props;
@ -22,7 +22,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 */ /* 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; const SOME_CONSTANT = 42;
@ -14,7 +14,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); super();
init(this, options, instance, null, safe_not_equal, { foo: 0 }); init(this, options, instance, null, safe_not_equal, { foo: 0 }, noop);
} }
get foo() { get foo() {

@ -39,7 +39,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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 { class Component extends SvelteComponent {
constructor(options) { constructor(options) {
super(); 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) { constructor(options) {
super(); super();
init(this, options, instance, create_fragment, safe_not_equal, { init(
currentTime: 0, this,
videoHeight: 1, options,
videoWidth: 2, instance,
offsetWidth: 3 create_fragment,
}, noop); safe_not_equal,
{
currentTime: 0,
videoHeight: 1,
videoWidth: 2,
offsetWidth: 3
},
noop
);
} }
} }

Loading…
Cancel
Save