Skip to content

Commit a64345f

Browse files
committed
update test fixtures
1 parent 0b8cdf8 commit a64345f

File tree

39 files changed

+78
-0
lines changed

39 files changed

+78
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ function instance($$self, $$props, $$invalidate) {
5656
const foo_function = () => handleFoo(bar);
5757

5858
$$self.$set = $$props => {
59+
$$self.$$.skip_bound = true;
5960
if ("bar" in $$props) $$invalidate(0, bar = $$props.bar);
61+
$$self.$$.skip_bound = false;
6062
};
6163

6264
return [bar, foo_function];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ function instance($$self, $$props, $$invalidate) {
5353
}
5454

5555
$$self.$set = $$props => {
56+
$$self.$$.skip_bound = true;
5657
if ("open" in $$props) $$invalidate(0, open = $$props.open);
58+
$$self.$$.skip_bound = false;
5759
};
5860

5961
return [open, details_toggle_handler];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ function instance($$self, $$props, $$invalidate) {
4747
}
4848

4949
$$self.$set = $$props => {
50+
$$self.$$.skip_bound = true;
5051
if ("w" in $$props) $$invalidate(0, w = $$props.w);
5152
if ("h" in $$props) $$invalidate(1, h = $$props.h);
53+
$$self.$$.skip_bound = false;
5254
};
5355

5456
return [w, h, div_elementresize_handler];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ function instance($$self, $$props, $$invalidate) {
6969
}
7070

7171
$$self.$set = $$props => {
72+
$$self.$$.skip_bound = true;
7273
if ("files" in $$props) $$invalidate(0, files = $$props.files);
74+
$$self.$$.skip_bound = false;
7375
};
7476

7577
return [files, input0_change_handler, input1_change_handler];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ function instance($$self, $$props, $$invalidate) {
119119
validate_slots("Component", $$slots, []);
120120

121121
$$self.$set = $$props => {
122+
$$self.$$.skip_bound = true;
122123
if ("prop" in $$props) $$subscribe_prop($$invalidate(0, prop = $$props.prop));
123124
if ("alias" in $$props) $$invalidate(1, realName = $$props.alias);
125+
$$self.$$.skip_bound = false;
124126
};
125127

126128
$$self.$capture_state = () => ({

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ function instance($$self, $$props, $$invalidate) {
4949
let { foo = 42 } = $$props;
5050

5151
$$self.$set = $$props => {
52+
$$self.$$.skip_bound = true;
5253
if ("foo" in $$props) $$invalidate(0, foo = $$props.foo);
54+
$$self.$$.skip_bound = false;
5355
};
5456

5557
return [foo];

test/js/samples/computed-collapsed-if/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ function instance($$self, $$props, $$invalidate) {
1313
}
1414

1515
$$self.$set = $$props => {
16+
$$self.$$.skip_bound = true;
1617
if ("x" in $$props) $$invalidate(0, x = $$props.x);
18+
$$self.$$.skip_bound = false;
1719
};
1820

1921
return [x, a, b];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ function instance($$self, $$props, $$invalidate) {
4848
let { bar } = $$props;
4949

5050
$$self.$set = $$props => {
51+
$$self.$$.skip_bound = true;
5152
if ("bar" in $$props) $$invalidate(0, bar = $$props.bar);
53+
$$self.$$.skip_bound = false;
5254
};
5355

5456
return [bar];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ function instance($$self, $$props, $$invalidate) {
8080
validate_slots("Component", $$slots, []);
8181

8282
$$self.$set = $$props => {
83+
$$self.$$.skip_bound = true;
8384
if ("name" in $$props) $$invalidate(0, name = $$props.name);
85+
$$self.$$.skip_bound = false;
8486
};
8587

8688
$$self.$capture_state = () => ({ name });

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,12 @@ function instance($$self, $$props, $$invalidate) {
184184
validate_slots("Component", $$slots, []);
185185

186186
$$self.$set = $$props => {
187+
$$self.$$.skip_bound = true;
187188
if ("things" in $$props) $$invalidate(0, things = $$props.things);
188189
if ("foo" in $$props) $$invalidate(1, foo = $$props.foo);
189190
if ("bar" in $$props) $$invalidate(2, bar = $$props.bar);
190191
if ("baz" in $$props) $$invalidate(3, baz = $$props.baz);
192+
$$self.$$.skip_bound = false;
191193
};
192194

193195
$$self.$capture_state = () => ({ things, foo, bar, baz });

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ function instance($$self, $$props, $$invalidate) {
176176
validate_slots("Component", $$slots, []);
177177

178178
$$self.$set = $$props => {
179+
$$self.$$.skip_bound = true;
179180
if ("things" in $$props) $$invalidate(0, things = $$props.things);
180181
if ("foo" in $$props) $$invalidate(1, foo = $$props.foo);
182+
$$self.$$.skip_bound = false;
181183
};
182184

183185
$$self.$capture_state = () => ({ things, foo });

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ function instance($$self, $$props, $$invalidate) {
105105
let { createElement } = $$props;
106106

107107
$$self.$set = $$props => {
108+
$$self.$$.skip_bound = true;
108109
if ("createElement" in $$props) $$invalidate(0, createElement = $$props.createElement);
110+
$$self.$$.skip_bound = false;
109111
};
110112

111113
return [createElement];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ function instance($$self, $$props, $$invalidate) {
1111
});
1212

1313
$$self.$set = $$props => {
14+
$$self.$$.skip_bound = true;
1415
if ("foo" in $$props) $$invalidate(0, foo = $$props.foo);
16+
$$self.$$.skip_bound = false;
1517
};
1618

1719
return [foo];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ function instance($$self, $$props, $$invalidate) {
7777
validate_slots("Component", $$slots, []);
7878

7979
$$self.$set = $$props => {
80+
$$self.$$.skip_bound = true;
8081
if ("foo" in $$props) $$invalidate(0, foo = $$props.foo);
82+
$$self.$$.skip_bound = false;
8183
};
8284

8385
$$self.$capture_state = () => ({ foo, bar });

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ function instance($$self, $$props, $$invalidate) {
107107
let { e } = $$props;
108108

109109
$$self.$set = $$props => {
110+
$$self.$$.skip_bound = true;
110111
if ("a" in $$props) $$invalidate(0, a = $$props.a);
111112
if ("b" in $$props) $$invalidate(1, b = $$props.b);
112113
if ("c" in $$props) $$invalidate(2, c = $$props.c);
113114
if ("d" in $$props) $$invalidate(3, d = $$props.d);
114115
if ("e" in $$props) $$invalidate(4, e = $$props.e);
116+
$$self.$$.skip_bound = false;
115117
};
116118

117119
return [a, b, c, d, e];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,12 @@ function instance($$self, $$props, $$invalidate) {
153153
let { foo } = $$props;
154154

155155
$$self.$set = $$props => {
156+
$$self.$$.skip_bound = true;
156157
if ("comments" in $$props) $$invalidate(0, comments = $$props.comments);
157158
if ("elapsed" in $$props) $$invalidate(1, elapsed = $$props.elapsed);
158159
if ("time" in $$props) $$invalidate(2, time = $$props.time);
159160
if ("foo" in $$props) $$invalidate(3, foo = $$props.foo);
161+
$$self.$$.skip_bound = false;
160162
};
161163

162164
return [comments, elapsed, time, foo];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ function instance($$self, $$props, $$invalidate) {
129129
let { things } = $$props;
130130

131131
$$self.$set = $$props => {
132+
$$self.$$.skip_bound = true;
132133
if ("things" in $$props) $$invalidate(0, things = $$props.things);
134+
$$self.$$.skip_bound = false;
133135
};
134136

135137
return [things];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ function instance($$self, $$props, $$invalidate) {
9898
let { things } = $$props;
9999

100100
$$self.$set = $$props => {
101+
$$self.$$.skip_bound = true;
101102
if ("things" in $$props) $$invalidate(0, things = $$props.things);
103+
$$self.$$.skip_bound = false;
102104
};
103105

104106
return [things];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ function instance($$self, $$props, $$invalidate) {
8989
let { foo } = $$props;
9090

9191
$$self.$set = $$props => {
92+
$$self.$$.skip_bound = true;
9293
if ("foo" in $$props) $$invalidate(0, foo = $$props.foo);
94+
$$self.$$.skip_bound = false;
9395
};
9496

9597
return [foo];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ function instance($$self, $$props, $$invalidate) {
6767
let { foo } = $$props;
6868

6969
$$self.$set = $$props => {
70+
$$self.$$.skip_bound = true;
7071
if ("foo" in $$props) $$invalidate(0, foo = $$props.foo);
72+
$$self.$$.skip_bound = false;
7173
};
7274

7375
return [foo];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ function instance($$self, $$props, $$invalidate) {
4545
let { y } = $$props;
4646

4747
$$self.$set = $$props => {
48+
$$self.$$.skip_bound = true;
4849
if ("color" in $$props) $$invalidate(0, color = $$props.color);
4950
if ("x" in $$props) $$invalidate(1, x = $$props.x);
5051
if ("y" in $$props) $$invalidate(2, y = $$props.y);
52+
$$self.$$.skip_bound = false;
5153
};
5254

5355
return [color, x, y];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function instance($$self, $$props, $$invalidate) {
3838
let { data } = $$props;
3939

4040
$$self.$set = $$props => {
41+
$$self.$$.skip_bound = true;
4142
if ("data" in $$props) $$invalidate(0, data = $$props.data);
43+
$$self.$$.skip_bound = false;
4244
};
4345

4446
return [data];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function instance($$self, $$props, $$invalidate) {
3838
let { color } = $$props;
3939

4040
$$self.$set = $$props => {
41+
$$self.$$.skip_bound = true;
4142
if ("color" in $$props) $$invalidate(0, color = $$props.color);
43+
$$self.$$.skip_bound = false;
4244
};
4345

4446
return [color];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ function instance($$self, $$props, $$invalidate) {
5555
let { value } = $$props;
5656

5757
$$self.$set = $$props => {
58+
$$self.$$.skip_bound = true;
5859
if ("style" in $$props) $$invalidate(0, style = $$props.style);
5960
if ("key" in $$props) $$invalidate(1, key = $$props.key);
6061
if ("value" in $$props) $$invalidate(2, value = $$props.value);
62+
$$self.$$.skip_bound = false;
6163
};
6264

6365
return [style, key, value];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ function instance($$self, $$props, $$invalidate) {
5050
}
5151

5252
$$self.$set = $$props => {
53+
$$self.$$.skip_bound = true;
5354
if ("files" in $$props) $$invalidate(0, files = $$props.files);
55+
$$self.$$.skip_bound = false;
5456
};
5557

5658
return [files, input_change_handler];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ function instance($$self, $$props, $$invalidate) {
6161
}
6262

6363
$$self.$set = $$props => {
64+
$$self.$$.skip_bound = true;
6465
if ("value" in $$props) $$invalidate(0, value = $$props.value);
66+
$$self.$$.skip_bound = false;
6567
};
6668

6769
return [value, input_change_input_handler];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ function instance($$self, $$props, $$invalidate) {
5454
}
5555

5656
$$self.$set = $$props => {
57+
$$self.$$.skip_bound = true;
5758
if ("foo" in $$props) $$invalidate(0, foo = $$props.foo);
59+
$$self.$$.skip_bound = false;
5860
};
5961

6062
return [foo, input_change_handler];

test/js/samples/media-bindings/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ function instance($$self, $$props, $$invalidate) {
174174
}
175175

176176
$$self.$set = $$props => {
177+
$$self.$$.skip_bound = true;
177178
if ("buffered" in $$props) $$invalidate(0, buffered = $$props.buffered);
178179
if ("seekable" in $$props) $$invalidate(1, seekable = $$props.seekable);
179180
if ("played" in $$props) $$invalidate(2, played = $$props.played);
@@ -185,6 +186,7 @@ function instance($$self, $$props, $$invalidate) {
185186
if ("playbackRate" in $$props) $$invalidate(8, playbackRate = $$props.playbackRate);
186187
if ("seeking" in $$props) $$invalidate(9, seeking = $$props.seeking);
187188
if ("ended" in $$props) $$invalidate(10, ended = $$props.ended);
189+
$$self.$$.skip_bound = false;
188190
};
189191

190192
return [

test/js/samples/optional-chaining/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,14 @@ function instance($$self, $$props, $$invalidate) {
168168
let Component;
169169

170170
$$self.$set = $$props => {
171+
$$self.$$.skip_bound = true;
171172
if ("a" in $$props) $$invalidate(0, a = $$props.a);
172173
if ("b" in $$props) $$invalidate(1, b = $$props.b);
173174
if ("c" in $$props) $$invalidate(2, c = $$props.c);
174175
if ("d" in $$props) $$invalidate(3, d = $$props.d);
175176
if ("e" in $$props) $$invalidate(4, e = $$props.e);
176177
if ("f" in $$props) $$invalidate(5, f = $$props.f);
178+
$$self.$$.skip_bound = false;
177179
};
178180

179181
return [a, b, c, d, e, f, Component];

test/js/samples/reactive-values-non-topologically-ordered/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ function instance($$self, $$props, $$invalidate) {
77
let b;
88

99
$$self.$set = $$props => {
10+
$$self.$$.skip_bound = true;
1011
if ("x" in $$props) $$invalidate(0, x = $$props.x);
12+
$$self.$$.skip_bound = false;
1113
};
1214

1315
$$self.$$.update = () => {

test/js/samples/reactive-values-non-writable-dependencies/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ function instance($$self, $$props, $$invalidate) {
66
let { b = 2 } = $$props;
77

88
$$self.$set = $$props => {
9+
$$self.$$.skip_bound = true;
910
if ("a" in $$props) $$invalidate(0, a = $$props.a);
1011
if ("b" in $$props) $$invalidate(1, b = $$props.b);
12+
$$self.$$.skip_bound = false;
1113
};
1214

1315
$$self.$$.update = () => {

test/js/samples/select-dynamic-value/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ function instance($$self, $$props, $$invalidate) {
5151
let { current } = $$props;
5252

5353
$$self.$set = $$props => {
54+
$$self.$$.skip_bound = true;
5455
if ("current" in $$props) $$invalidate(0, current = $$props.current);
56+
$$self.$$.skip_bound = false;
5557
};
5658

5759
return [current];

test/js/samples/src-attribute-check/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ function instance($$self, $$props, $$invalidate) {
6868
let { slug } = $$props;
6969

7070
$$self.$set = $$props => {
71+
$$self.$$.skip_bound = true;
7172
if ("url" in $$props) $$invalidate(0, url = $$props.url);
7273
if ("slug" in $$props) $$invalidate(1, slug = $$props.slug);
74+
$$self.$$.skip_bound = false;
7375
};
7476

7577
return [url, slug];

test/js/samples/title/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ function instance($$self, $$props, $$invalidate) {
2323
let { custom } = $$props;
2424

2525
$$self.$set = $$props => {
26+
$$self.$$.skip_bound = true;
2627
if ("custom" in $$props) $$invalidate(0, custom = $$props.custom);
28+
$$self.$$.skip_bound = false;
2729
};
2830

2931
return [custom];

test/js/samples/transition-local/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ function instance($$self, $$props, $$invalidate) {
125125
let { y } = $$props;
126126

127127
$$self.$set = $$props => {
128+
$$self.$$.skip_bound = true;
128129
if ("x" in $$props) $$invalidate(0, x = $$props.x);
129130
if ("y" in $$props) $$invalidate(1, y = $$props.y);
131+
$$self.$$.skip_bound = false;
130132
};
131133

132134
return [x, y];

test/js/samples/transition-repeated-outro/expected.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ function instance($$self, $$props, $$invalidate) {
103103
let { num = 1 } = $$props;
104104

105105
$$self.$set = $$props => {
106+
$$self.$$.skip_bound = true;
106107
if ("num" in $$props) $$invalidate(0, num = $$props.num);
108+
$$self.$$.skip_bound = false;
107109
};
108110

109111
return [num];

0 commit comments

Comments
 (0)