Revert "add 'noop' param to some more tests"

This reverts commit 7bd2ed6096.
pull/5639/head
Ivan Hofer 5 years ago
parent c154895a77
commit 675d6ddd10

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

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

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

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

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, 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 }, noop);
init(this, options, instance, null, safe_not_equal, { x: 0, a: 1, b: 2 });
}
get a() {

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

@ -45,8 +45,7 @@ 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, noop, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, 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 }, noop);
init(this, options, instance, null, safe_not_equal, { foo: 0 });
}
}

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

@ -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, {}, noop);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, 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, {}, noop);
init(this, options, instance, null, safe_not_equal, {});
}
}

@ -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, {}, noop);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

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

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

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

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

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

@ -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 }, noop);
init(this, options, instance, create_fragment, safe_not_equal, { style: 0, key: 1, value: 2 });
}
}

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

@ -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, {}, noop);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

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

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

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

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, 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 }, noop);
init(this, options, instance, null, safe_not_equal, { x: 0 });
}
}

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, 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 }, noop);
init(this, options, instance, null, safe_not_equal, { a: 0, b: 1 });
}
}

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
import { SvelteComponent, init, 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 }, noop);
init(this, options, instance, null, safe_not_equal, { foo: 0 });
}
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, {}, noop);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

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

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

Loading…
Cancel
Save