Skip to content

Commit 32099d9

Browse files
committed
update tests
1 parent b8a829e commit 32099d9

File tree

43 files changed

+70
-70
lines changed

Some content is hidden

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

43 files changed

+70
-70
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"acorn": "^7.1.0",
6565
"agadoo": "^1.1.0",
6666
"c8": "^5.0.1",
67-
"code-red": "0.0.25",
67+
"code-red": "0.0.26",
6868
"codecov": "^3.5.0",
6969
"css-tree": "1.0.0-alpha22",
7070
"eslint": "^6.3.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function create_fragment(ctx) {
2424
foo_action = foo.call(null, button, ctx[1]) || ({});
2525
},
2626
p(ctx, [dirty]) {
27-
if (is_function(foo_action.update) && dirty & /* _id9uocqrtmw00_1_ */ 1) foo_action.update.call(null, ctx[1]);
27+
if (is_function(foo_action.update) && dirty & /* bar */ 1) foo_action.update.call(null, ctx[1]);
2828
},
2929
i: noop,
3030
o: noop,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function create_fragment(ctx) {
2828
details.open = ctx[0];
2929
},
3030
p(ctx, [dirty]) {
31-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
31+
if (dirty & /* open */ 1) {
3232
details.open = ctx[0];
3333
}
3434
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ function create_fragment(ctx) {
3838
set_input_value(input, ctx[0]);
3939
},
4040
p(ctx, [dirty]) {
41-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t0, ctx[0]);
41+
if (dirty & /* foo */ 1) set_data(t0, ctx[0]);
4242

43-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && input.value !== ctx[0]) {
43+
if (dirty & /* foo */ 1 && input.value !== ctx[0]) {
4444
set_input_value(input, ctx[0]);
4545
}
4646
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function create_fragment(ctx) {
3535
append(p, t);
3636
},
3737
p(ctx, [dirty]) {
38-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t, ctx[0]);
38+
if (dirty & /* foo */ 1) set_data(t, ctx[0]);
3939
},
4040
i: noop,
4141
o: noop,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ function create_fragment(ctx) {
4848
},
4949
p(ctx, [dirty]) {
5050
const bar_changes = {};
51-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) bar_changes.x = ctx[0];
51+
if (dirty & /* z */ 1) bar_changes.x = ctx[0];
5252
bar.$set(bar_changes);
5353

54-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && input.value !== ctx[0]) {
54+
if (dirty & /* z */ 1 && input.value !== ctx[0]) {
5555
set_input_value(input, ctx[0]);
5656
}
5757
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function create_fragment(ctx) {
2929
append(h1, t);
3030
},
3131
p(ctx, [dirty]) {
32-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t, ctx[0]);
32+
if (dirty & /* $foo */ 1) set_data(t, ctx[0]);
3333
},
3434
i: noop,
3535
o: noop,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function create_fragment(ctx) {
4040
insert(target, button, anchor);
4141
},
4242
p(ctx, [dirty]) {
43-
if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data(t0, ctx[1]);
43+
if (dirty & /* $foo */ 2) set_data(t0, ctx[1]);
4444
},
4545
i: noop,
4646
o: noop,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function create_fragment(ctx) {
3030
insert(target, div1, anchor);
3131
},
3232
p(ctx, [dirty]) {
33-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
33+
if (dirty & /* bar */ 1) {
3434
attr(div1, "data-foo", ctx[0]);
3535
}
3636
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function create_fragment(ctx) {
4545
insert_dev(target, t3, anchor);
4646
},
4747
p: function update(ctx, [dirty]) {
48-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data_dev(t1, ctx[0]);
48+
if (dirty & /* name */ 1) set_data_dev(t1, ctx[0]);
4949
debugger;
5050
},
5151
i: noop,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ function create_each_block(ctx) {
5454
insert_dev(target, t1, anchor);
5555
},
5656
p: function update(ctx, dirty) {
57-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t0_value !== (t0_value = ctx[4].name + "")) set_data_dev(t0, t0_value);
57+
if (dirty & /* things */ 1 && t0_value !== (t0_value = ctx[4].name + "")) set_data_dev(t0, t0_value);
5858

59-
if (dirty & /* _id9uocqrtmw00_1_ */ 15) {
59+
if (dirty & /* foo, bar, baz, things */ 15) {
6060
const foo = ctx[1];
6161
const bar = ctx[2];
6262
const baz = ctx[3];
@@ -120,7 +120,7 @@ function create_fragment(ctx) {
120120
append_dev(p, t2);
121121
},
122122
p: function update(ctx, [dirty]) {
123-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
123+
if (dirty & /* things */ 1) {
124124
each_value = ctx[0];
125125
let i;
126126

@@ -143,7 +143,7 @@ function create_fragment(ctx) {
143143
each_blocks.length = each_value.length;
144144
}
145145

146-
if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data_dev(t2, ctx[1]);
146+
if (dirty & /* foo */ 2) set_data_dev(t2, ctx[1]);
147147
},
148148
i: noop,
149149
o: noop,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ function create_each_block(ctx) {
5151
insert_dev(target, t1, anchor);
5252
},
5353
p: function update(ctx, dirty) {
54-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t0_value !== (t0_value = ctx[2].name + "")) set_data_dev(t0, t0_value);
54+
if (dirty & /* things */ 1 && t0_value !== (t0_value = ctx[2].name + "")) set_data_dev(t0, t0_value);
5555

56-
if (dirty & /* _id9uocqrtmw00_1_ */ 2) {
56+
if (dirty & /* foo */ 2) {
5757
const foo = ctx[1];
5858
console.log({ foo });
5959
debugger;
@@ -114,7 +114,7 @@ function create_fragment(ctx) {
114114
append_dev(p, t2);
115115
},
116116
p: function update(ctx, [dirty]) {
117-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
117+
if (dirty & /* things */ 1) {
118118
each_value = ctx[0];
119119
let i;
120120

@@ -137,7 +137,7 @@ function create_fragment(ctx) {
137137
each_blocks.length = each_value.length;
138138
}
139139

140-
if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data_dev(t2, ctx[1]);
140+
if (dirty & /* foo */ 2) set_data_dev(t2, ctx[1]);
141141
},
142142
i: noop,
143143
o: noop,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function create_fragment(ctx) {
2424
},
2525
m: noop,
2626
p: function update(ctx, [dirty]) {
27-
if (dirty & /* _id9uocqrtmw00_1_ */ 3) {
27+
if (dirty & /* obj, kobzol */ 3) {
2828
const obj = ctx[0];
2929
const kobzol = ctx[1];
3030
console.log({ obj, kobzol });

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function create_fragment(ctx) {
8989
insert_dev(target, each_1_anchor, anchor);
9090
},
9191
p: function update(ctx, [dirty]) {
92-
if (dirty & /* _id9uocqrtmw00_1_ */ 0) {
92+
if (dirty & /* things */ 0) {
9393
each_value = things;
9494
let i;
9595

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function create_each_block(ctx) {
3636
append(span, t);
3737
},
3838
p(ctx, dirty) {
39-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t_value !== (t_value = ctx[1] + "")) set_data(t, t_value);
39+
if (dirty & /* createElement */ 1 && t_value !== (t_value = ctx[1] + "")) set_data(t, t_value);
4040
},
4141
d(detaching) {
4242
if (detaching) detach(span);
@@ -69,7 +69,7 @@ function create_fragment(ctx) {
6969
insert(target, each_1_anchor, anchor);
7070
},
7171
p(ctx, [dirty]) {
72-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
72+
if (dirty & /* createElement */ 1) {
7373
each_value = ctx[0];
7474
let i;
7575

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ function create_fragment(ctx) {
4242
append_dev(p, t2);
4343
},
4444
p: function update(ctx, [dirty]) {
45-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t0_value !== (t0_value = Math.max(0, ctx[0]) + "")) set_data_dev(t0, t0_value);
46-
if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data_dev(t2, ctx[1]);
45+
if (dirty & /* foo */ 1 && t0_value !== (t0_value = Math.max(0, ctx[0]) + "")) set_data_dev(t0, t0_value);
46+
if (dirty & /* bar */ 2) set_data_dev(t2, ctx[1]);
4747
},
4848
i: noop,
4949
o: noop,
@@ -86,7 +86,7 @@ function instance($$self, $$props, $$invalidate) {
8686
};
8787

8888
$$self.$$.update = () => {
89-
if ($$self.$$.dirty & /* _id9uocqrtmw00_1_ */ 1) {
89+
if ($$self.$$.dirty & /* foo */ 1) {
9090
$: $$invalidate(1, bar = foo * 2);
9191
}
9292
};

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function create_each_block(ctx) {
3636
append(span, t);
3737
},
3838
p(ctx, dirty) {
39-
if (dirty & /* _id9uocqrtmw00_1_ */ 31 && t_value !== (t_value = ctx[5] + "")) set_data(t, t_value);
39+
if (dirty & /* a, b, c, d, e */ 31 && t_value !== (t_value = ctx[5] + "")) set_data(t, t_value);
4040
},
4141
d(detaching) {
4242
if (detaching) detach(span);
@@ -69,7 +69,7 @@ function create_fragment(ctx) {
6969
insert(target, each_1_anchor, anchor);
7070
},
7171
p(ctx, [dirty]) {
72-
if (dirty & /* _id9uocqrtmw00_1_ */ 31) {
72+
if (dirty & /* a, b, c, d, e */ 31) {
7373
each_value = [ctx[0], ctx[1], ctx[2], ctx[3], ctx[4]];
7474
let i;
7575

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ function create_each_block(ctx) {
7070
html_tag.m(div);
7171
},
7272
p(ctx, dirty) {
73-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t2_value !== (t2_value = ctx[4].author + "")) set_data(t2, t2_value);
74-
if (dirty & /* _id9uocqrtmw00_1_ */ 7 && t4_value !== (t4_value = ctx[1](ctx[4].time, ctx[2]) + "")) set_data(t4, t4_value);
75-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && raw_value !== (raw_value = ctx[4].html + "")) html_tag.p(raw_value);
73+
if (dirty & /* comments */ 1 && t2_value !== (t2_value = ctx[4].author + "")) set_data(t2, t2_value);
74+
if (dirty & /* elapsed, comments, time */ 7 && t4_value !== (t4_value = ctx[1](ctx[4].time, ctx[2]) + "")) set_data(t4, t4_value);
75+
if (dirty & /* comments */ 1 && raw_value !== (raw_value = ctx[4].html + "")) html_tag.p(raw_value);
7676
},
7777
d(detaching) {
7878
if (detaching) detach(div);
@@ -111,7 +111,7 @@ function create_fragment(ctx) {
111111
append(p, t1);
112112
},
113113
p(ctx, [dirty]) {
114-
if (dirty & /* _id9uocqrtmw00_1_ */ 7) {
114+
if (dirty & /* comments, elapsed, time */ 7) {
115115
each_value = ctx[0];
116116
let i;
117117

@@ -134,7 +134,7 @@ function create_fragment(ctx) {
134134
each_blocks.length = each_value.length;
135135
}
136136

137-
if (dirty & /* _id9uocqrtmw00_1_ */ 8) set_data(t1, ctx[3]);
137+
if (dirty & /* foo */ 8) set_data(t1, ctx[3]);
138138
},
139139
i: noop,
140140
o: noop,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function create_each_block(key_1, ctx) {
4444
append(div, t);
4545
},
4646
p(ctx, dirty) {
47-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
47+
if (dirty & /* things */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
4848
},
4949
r() {
5050
rect = div.getBoundingClientRect();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function create_each_block(key_1, ctx) {
4040
append(div, t);
4141
},
4242
p(ctx, dirty) {
43-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
43+
if (dirty & /* things */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
4444
},
4545
d(detaching) {
4646
if (detaching) detach(div);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function create_fragment(ctx) {
6363
},
6464
p(new_ctx, [dirty]) {
6565
ctx = new_ctx;
66-
if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data(t4, ctx[1]);
66+
if (dirty & /* number */ 2) set_data(t4, ctx[1]);
6767
},
6868
i: noop,
6969
o: noop,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ function create_fragment(ctx) {
2323
insert(target, div, anchor);
2424
},
2525
p(ctx, [dirty]) {
26-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
26+
if (dirty & /* color */ 1) {
2727
set_style(div, "color", ctx[0]);
2828
}
2929

30-
if (dirty & /* _id9uocqrtmw00_1_ */ 6) {
30+
if (dirty & /* x, y */ 6) {
3131
set_style(div, "transform", "translate(" + ctx[1] + "px," + ctx[2] + "px)");
3232
}
3333
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function create_fragment(ctx) {
2222
insert(target, div, anchor);
2323
},
2424
p(ctx, [dirty]) {
25-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
25+
if (dirty & /* data */ 1) {
2626
set_style(div, "background", "url(data:image/png;base64," + ctx[0] + ")");
2727
}
2828
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function create_fragment(ctx) {
2222
insert(target, div, anchor);
2323
},
2424
p(ctx, [dirty]) {
25-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
25+
if (dirty & /* color */ 1) {
2626
set_style(div, "color", ctx[0]);
2727
}
2828
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ function create_fragment(ctx) {
3131
insert(target, div1, anchor);
3232
},
3333
p(ctx, [dirty]) {
34-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
34+
if (dirty & /* style */ 1) {
3535
attr(div0, "style", ctx[0]);
3636
}
3737

38-
if (dirty & /* _id9uocqrtmw00_1_ */ 6 && div1_style_value !== (div1_style_value = "" + (ctx[1] + ": " + ctx[2]))) {
38+
if (dirty & /* key, value */ 6 && div1_style_value !== (div1_style_value = "" + (ctx[1] + ": " + ctx[2]))) {
3939
attr(div1, "style", div1_style_value);
4040
}
4141
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function create_fragment(ctx) {
4141
append(form, button);
4242
},
4343
p(ctx, [dirty]) {
44-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && input.value !== ctx[0]) {
44+
if (dirty & /* test */ 1 && input.value !== ctx[0]) {
4545
set_input_value(input, ctx[0]);
4646
}
4747
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function create_fragment(ctx) {
2929
set_input_value(input, ctx[0]);
3030
},
3131
p(ctx, [dirty]) {
32-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
32+
if (dirty & /* value */ 1) {
3333
set_input_value(input, ctx[0]);
3434
}
3535
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function create_fragment(ctx) {
2626
input.checked = ctx[0];
2727
},
2828
p(ctx, [dirty]) {
29-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) {
29+
if (dirty & /* foo */ 1) {
3030
input.checked = ctx[0];
3131
}
3232
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function create_fragment(ctx) {
4040
append(p, t3);
4141
},
4242
p(ctx, [dirty]) {
43-
if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t3, ctx[0]);
43+
if (dirty & /* x */ 1) set_data(t3, ctx[0]);
4444
},
4545
i: noop,
4646
o: noop,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function create_fragment(ctx) {
4141
append(p, t3);
4242
},
4343
p(ctx, [dirty]) {
44-
if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value);
44+
if (dirty & /* things */ 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value);
4545
},
4646
i: noop,
4747
o: noop,

0 commit comments

Comments
 (0)