Skip to content

Commit c0ac80f

Browse files
committed
add 'noop' param to all tests
1 parent a664d7d commit c0ac80f

File tree

57 files changed

+68
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+68
-65
lines changed

test/js/samples/action-custom-event-handler/expected.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function handleFoo(bar) {
4848
}
4949

5050
function foo(node, callback) {
51-
51+
5252
} // code goes here
5353

5454
function instance($$self, $$props, $$invalidate) {
@@ -65,7 +65,7 @@ function instance($$self, $$props, $$invalidate) {
6565
class Component extends SvelteComponent {
6666
constructor(options) {
6767
super();
68-
init(this, options, instance, create_fragment, safe_not_equal, { bar: 0 });
68+
init(this, options, instance, create_fragment, safe_not_equal, { bar: 0 }, noop);
6969
}
7070
}
7171

test/js/samples/bind-online/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function instance($$self, $$props, $$invalidate) {
4949
class Component extends SvelteComponent {
5050
constructor(options) {
5151
super();
52-
init(this, options, instance, create_fragment, safe_not_equal, {});
52+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
5353
}
5454
}
5555

test/js/samples/bind-open/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function instance($$self, $$props, $$invalidate) {
6262
class Component extends SvelteComponent {
6363
constructor(options) {
6464
super();
65-
init(this, options, instance, create_fragment, safe_not_equal, { open: 0 });
65+
init(this, options, instance, create_fragment, safe_not_equal, { open: 0 }, noop);
6666
}
6767
}
6868

test/js/samples/bind-width-height/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function instance($$self, $$props, $$invalidate) {
5757
class Component extends SvelteComponent {
5858
constructor(options) {
5959
super();
60-
init(this, options, instance, create_fragment, safe_not_equal, { w: 0, h: 1 });
60+
init(this, options, instance, create_fragment, safe_not_equal, { w: 0, h: 1 }, noop);
6161
}
6262
}
6363

test/js/samples/bindings-readonly-order/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function instance($$self, $$props, $$invalidate) {
7878
class Component extends SvelteComponent {
7979
constructor(options) {
8080
super();
81-
init(this, options, instance, create_fragment, safe_not_equal, { files: 0 });
81+
init(this, options, instance, create_fragment, safe_not_equal, { files: 0 }, noop);
8282
}
8383
}
8484

test/js/samples/capture-inject-dev-only/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function instance($$self, $$props, $$invalidate) {
7575
class Component extends SvelteComponent {
7676
constructor(options) {
7777
super();
78-
init(this, options, instance, create_fragment, safe_not_equal, {});
78+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
7979
}
8080
}
8181

test/js/samples/capture-inject-state/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function instance($$self, $$props, $$invalidate) {
158158
class Component extends SvelteComponentDev {
159159
constructor(options) {
160160
super(options);
161-
init(this, options, instance, create_fragment, safe_not_equal, { prop: 0, alias: 1 });
161+
init(this, options, instance, create_fragment, safe_not_equal, { prop: 0, alias: 1 }, noop);
162162

163163
dispatch_dev("SvelteRegisterComponent", {
164164
component: this,

test/js/samples/collapses-text-around-comments/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Component extends SvelteComponent {
5959
constructor(options) {
6060
super();
6161
if (!document.getElementById("svelte-1a7i8ec-style")) add_css();
62-
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
62+
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 }, noop);
6363
}
6464
}
6565

test/js/samples/component-static-array/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function instance($$self) {
4848
class Component extends SvelteComponent {
4949
constructor(options) {
5050
super();
51-
init(this, options, instance, create_fragment, safe_not_equal, {});
51+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
5252
}
5353
}
5454

test/js/samples/component-static-var/expected.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
insert,
1010
listen,
1111
mount_component,
12+
noop,
1213
safe_not_equal,
1314
set_input_value,
1415
space,
@@ -101,7 +102,7 @@ function instance($$self, $$props, $$invalidate) {
101102
class Component extends SvelteComponent {
102103
constructor(options) {
103104
super();
104-
init(this, options, instance, create_fragment, safe_not_equal, {});
105+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
105106
}
106107
}
107108

test/js/samples/component-static/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function instance($$self) {
4848
class Component extends SvelteComponent {
4949
constructor(options) {
5050
super();
51-
init(this, options, instance, create_fragment, safe_not_equal, {});
51+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
5252
}
5353
}
5454

test/js/samples/component-store-access-invalidate/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function instance($$self, $$props, $$invalidate) {
4949
class Component extends SvelteComponent {
5050
constructor(options) {
5151
super();
52-
init(this, options, instance, create_fragment, safe_not_equal, {});
52+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
5353
}
5454
}
5555

test/js/samples/component-store-reassign-invalidate/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function instance($$self, $$props, $$invalidate) {
7474
class Component extends SvelteComponent {
7575
constructor(options) {
7676
super();
77-
init(this, options, instance, create_fragment, safe_not_equal, {});
77+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
7878
}
7979
}
8080

test/js/samples/data-attribute/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function instance($$self, $$props, $$invalidate) {
5757
class Component extends SvelteComponent {
5858
constructor(options) {
5959
super();
60-
init(this, options, instance, create_fragment, safe_not_equal, { bar: 0 });
60+
init(this, options, instance, create_fragment, safe_not_equal, { bar: 0 }, noop);
6161
}
6262
}
6363

test/js/samples/debug-empty/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function instance($$self, $$props, $$invalidate) {
9898
class Component extends SvelteComponentDev {
9999
constructor(options) {
100100
super(options);
101-
init(this, options, instance, create_fragment, safe_not_equal, { name: 0 });
101+
init(this, options, instance, create_fragment, safe_not_equal, { name: 0 }, noop);
102102

103103
dispatch_dev("SvelteRegisterComponent", {
104104
component: this,

test/js/samples/debug-foo-bar-baz-things/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function instance($$self, $$props, $$invalidate) {
208208
class Component extends SvelteComponentDev {
209209
constructor(options) {
210210
super(options);
211-
init(this, options, instance, create_fragment, safe_not_equal, { things: 0, foo: 1, bar: 2, baz: 3 });
211+
init(this, options, instance, create_fragment, safe_not_equal, { things: 0, foo: 1, bar: 2, baz: 3 }, noop);
212212

213213
dispatch_dev("SvelteRegisterComponent", {
214214
component: this,

test/js/samples/debug-foo/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function instance($$self, $$props, $$invalidate) {
196196
class Component extends SvelteComponentDev {
197197
constructor(options) {
198198
super(options);
199-
init(this, options, instance, create_fragment, safe_not_equal, { things: 0, foo: 1 });
199+
init(this, options, instance, create_fragment, safe_not_equal, { things: 0, foo: 1 }, noop);
200200

201201
dispatch_dev("SvelteRegisterComponent", {
202202
component: this,

test/js/samples/debug-hoisted/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function instance($$self, $$props, $$invalidate) {
7676
class Component extends SvelteComponentDev {
7777
constructor(options) {
7878
super(options);
79-
init(this, options, instance, create_fragment, safe_not_equal, {});
79+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
8080

8181
dispatch_dev("SvelteRegisterComponent", {
8282
component: this,

test/js/samples/debug-no-dependencies/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function instance($$self, $$props) {
150150
class Component extends SvelteComponentDev {
151151
constructor(options) {
152152
super(options);
153-
init(this, options, instance, create_fragment, safe_not_equal, {});
153+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
154154

155155
dispatch_dev("SvelteRegisterComponent", {
156156
component: this,

test/js/samples/deconflict-builtins/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function instance($$self, $$props, $$invalidate) {
114114
class Component extends SvelteComponent {
115115
constructor(options) {
116116
super();
117-
init(this, options, instance, create_fragment, safe_not_equal, { createElement: 0 });
117+
init(this, options, instance, create_fragment, safe_not_equal, { createElement: 0 }, noop);
118118
}
119119
}
120120

test/js/samples/dev-warning-missing-data-computed/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function instance($$self, $$props, $$invalidate) {
102102
class Component extends SvelteComponentDev {
103103
constructor(options) {
104104
super(options);
105-
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
105+
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 }, noop);
106106

107107
dispatch_dev("SvelteRegisterComponent", {
108108
component: this,

test/js/samples/each-block-array-literal/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function instance($$self, $$props, $$invalidate) {
120120
class Component extends SvelteComponent {
121121
constructor(options) {
122122
super();
123-
init(this, options, instance, create_fragment, safe_not_equal, { a: 0, b: 1, c: 2, d: 3, e: 4 });
123+
init(this, options, instance, create_fragment, safe_not_equal, { a: 0, b: 1, c: 2, d: 3, e: 4 }, noop);
124124
}
125125
}
126126

test/js/samples/each-block-changed-check/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function instance($$self, $$props, $$invalidate) {
165165
class Component extends SvelteComponent {
166166
constructor(options) {
167167
super();
168-
init(this, options, instance, create_fragment, safe_not_equal, { comments: 0, elapsed: 1, time: 2, foo: 3 });
168+
init(this, options, instance, create_fragment, safe_not_equal, { comments: 0, elapsed: 1, time: 2, foo: 3 }, noop);
169169
}
170170
}
171171

test/js/samples/each-block-keyed-animated/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function instance($$self, $$props, $$invalidate) {
138138
class Component extends SvelteComponent {
139139
constructor(options) {
140140
super();
141-
init(this, options, instance, create_fragment, safe_not_equal, { things: 0 });
141+
init(this, options, instance, create_fragment, safe_not_equal, { things: 0 }, noop);
142142
}
143143
}
144144

test/js/samples/each-block-keyed/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function instance($$self, $$props, $$invalidate) {
107107
class Component extends SvelteComponent {
108108
constructor(options) {
109109
super();
110-
init(this, options, instance, create_fragment, safe_not_equal, { things: 0 });
110+
init(this, options, instance, create_fragment, safe_not_equal, { things: 0 }, noop);
111111
}
112112
}
113113

test/js/samples/event-handler-dynamic/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function instance($$self, $$props, $$invalidate) {
103103
class Component extends SvelteComponent {
104104
constructor(options) {
105105
super();
106-
init(this, options, instance, create_fragment, safe_not_equal, {});
106+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
107107
}
108108
}
109109

test/js/samples/if-block-complex/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function instance($$self) {
6060
class Component extends SvelteComponent {
6161
constructor(options) {
6262
super();
63-
init(this, options, instance, create_fragment, safe_not_equal, {});
63+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
6464
}
6565
}
6666

test/js/samples/if-block-no-update/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function instance($$self, $$props, $$invalidate) {
9898
class Component extends SvelteComponent {
9999
constructor(options) {
100100
super();
101-
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
101+
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 }, noop);
102102
}
103103
}
104104

test/js/samples/if-block-simple/expected.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function create_fragment(ctx) {
4343
p(ctx, [dirty]) {
4444
if (/*foo*/ ctx[0]) {
4545
if (if_block) {
46-
46+
4747
} else {
4848
if_block = create_if_block(ctx);
4949
if_block.c();
@@ -76,7 +76,7 @@ function instance($$self, $$props, $$invalidate) {
7676
class Component extends SvelteComponent {
7777
constructor(options) {
7878
super();
79-
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
79+
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 }, noop);
8080
}
8181
}
8282

test/js/samples/import-meta/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function instance($$self) {
4646
class Component extends SvelteComponent {
4747
constructor(options) {
4848
super();
49-
init(this, options, instance, create_fragment, safe_not_equal, {});
49+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
5050
}
5151
}
5252

test/js/samples/initial-context/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function instance($$self, $$props, $$invalidate) {
5252
class Component extends SvelteComponent {
5353
constructor(options) {
5454
super();
55-
init(this, options, instance, create_fragment, safe_not_equal, {});
55+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
5656
}
5757
}
5858

test/js/samples/inline-style-optimized-multiple/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function instance($$self, $$props, $$invalidate) {
5656
class Component extends SvelteComponent {
5757
constructor(options) {
5858
super();
59-
init(this, options, instance, create_fragment, safe_not_equal, { color: 0, x: 1, y: 2 });
59+
init(this, options, instance, create_fragment, safe_not_equal, { color: 0, x: 1, y: 2 }, noop);
6060
}
6161
}
6262

test/js/samples/inline-style-optimized-url/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function instance($$self, $$props, $$invalidate) {
4747
class Component extends SvelteComponent {
4848
constructor(options) {
4949
super();
50-
init(this, options, instance, create_fragment, safe_not_equal, { data: 0 });
50+
init(this, options, instance, create_fragment, safe_not_equal, { data: 0 }, noop);
5151
}
5252
}
5353

test/js/samples/inline-style-optimized/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function instance($$self, $$props, $$invalidate) {
4747
class Component extends SvelteComponent {
4848
constructor(options) {
4949
super();
50-
init(this, options, instance, create_fragment, safe_not_equal, { color: 0 });
50+
init(this, options, instance, create_fragment, safe_not_equal, { color: 0 }, noop);
5151
}
5252
}
5353

test/js/samples/input-files/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function instance($$self, $$props, $$invalidate) {
5959
class Component extends SvelteComponent {
6060
constructor(options) {
6161
super();
62-
init(this, options, instance, create_fragment, safe_not_equal, { files: 0 });
62+
init(this, options, instance, create_fragment, safe_not_equal, { files: 0 }, noop);
6363
}
6464
}
6565

test/js/samples/input-range/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function instance($$self, $$props, $$invalidate) {
7070
class Component extends SvelteComponent {
7171
constructor(options) {
7272
super();
73-
init(this, options, instance, create_fragment, safe_not_equal, { value: 0 });
73+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0 }, noop);
7474
}
7575
}
7676

test/js/samples/input-value/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function instance($$self, $$props, $$invalidate) {
7676
class Component extends SvelteComponent {
7777
constructor(options) {
7878
super();
79-
init(this, options, instance, create_fragment, safe_not_equal, {});
79+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
8080
}
8181
}
8282

test/js/samples/input-without-blowback-guard/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function instance($$self, $$props, $$invalidate) {
6363
class Component extends SvelteComponent {
6464
constructor(options) {
6565
super();
66-
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
66+
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 }, noop);
6767
}
6868
}
6969

test/js/samples/instrumentation-script-if-no-block/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function instance($$self, $$props, $$invalidate) {
7272
class Component extends SvelteComponent {
7373
constructor(options) {
7474
super();
75-
init(this, options, instance, create_fragment, safe_not_equal, {});
75+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
7676
}
7777
}
7878

test/js/samples/instrumentation-script-main-block/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function instance($$self, $$props, $$invalidate) {
6868
class Component extends SvelteComponent {
6969
constructor(options) {
7070
super();
71-
init(this, options, instance, create_fragment, safe_not_equal, {});
71+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
7272
}
7373
}
7474

test/js/samples/instrumentation-script-x-equals-x/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function instance($$self, $$props, $$invalidate) {
7474
class Component extends SvelteComponent {
7575
constructor(options) {
7676
super();
77-
init(this, options, instance, create_fragment, safe_not_equal, {});
77+
init(this, options, instance, create_fragment, safe_not_equal, {}, noop);
7878
}
7979
}
8080

0 commit comments

Comments
 (0)