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

@ -3,7 +3,6 @@ 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";
@ -24,7 +23,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 }, noop); init(this, options, instance, null, safe_not_equal, { increment: 0 });
} }
get increment() { get increment() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save