From 32099d922c3f3196b7254bb27f05624953c3717f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 22 Nov 2019 17:41:59 -0500 Subject: [PATCH] update tests --- package-lock.json | 6 +++--- package.json | 2 +- .../js/samples/action-custom-event-handler/expected.js | 2 +- test/js/samples/bind-open/expected.js | 2 +- test/js/samples/capture-inject-dev-only/expected.js | 4 ++-- .../samples/collapses-text-around-comments/expected.js | 2 +- test/js/samples/component-static-var/expected.js | 4 ++-- .../component-store-access-invalidate/expected.js | 2 +- .../component-store-reassign-invalidate/expected.js | 2 +- test/js/samples/data-attribute/expected.js | 2 +- test/js/samples/debug-empty/expected.js | 2 +- test/js/samples/debug-foo-bar-baz-things/expected.js | 8 ++++---- test/js/samples/debug-foo/expected.js | 8 ++++---- test/js/samples/debug-hoisted/expected.js | 2 +- test/js/samples/debug-no-dependencies/expected.js | 2 +- test/js/samples/deconflict-builtins/expected.js | 4 ++-- .../dev-warning-missing-data-computed/expected.js | 6 +++--- test/js/samples/each-block-array-literal/expected.js | 4 ++-- test/js/samples/each-block-changed-check/expected.js | 10 +++++----- test/js/samples/each-block-keyed-animated/expected.js | 2 +- test/js/samples/each-block-keyed/expected.js | 2 +- test/js/samples/event-handler-dynamic/expected.js | 2 +- .../inline-style-optimized-multiple/expected.js | 4 ++-- test/js/samples/inline-style-optimized-url/expected.js | 2 +- test/js/samples/inline-style-optimized/expected.js | 2 +- test/js/samples/inline-style-unoptimized/expected.js | 4 ++-- test/js/samples/input-no-initial-value/expected.js | 2 +- test/js/samples/input-range/expected.js | 2 +- .../samples/input-without-blowback-guard/expected.js | 2 +- .../instrumentation-script-if-no-block/expected.js | 2 +- .../instrumentation-script-x-equals-x/expected.js | 2 +- .../instrumentation-template-if-no-block/expected.js | 2 +- .../instrumentation-template-x-equals-x/expected.js | 2 +- test/js/samples/media-bindings/expected.js | 8 ++++---- .../expected.js | 4 ++-- .../expected.js | 2 +- test/js/samples/select-dynamic-value/expected.js | 2 +- test/js/samples/src-attribute-check/expected.js | 4 ++-- test/js/samples/title/expected.js | 2 +- test/js/samples/unchanged-expression/expected.js | 2 +- .../unreferenced-state-not-invalidated/expected.js | 4 ++-- test/js/samples/video-bindings/expected.js | 2 +- test/js/samples/window-binding-scroll/expected.js | 4 ++-- 43 files changed, 70 insertions(+), 70 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1af50ed642..dd9d418f18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -500,9 +500,9 @@ "dev": true }, "code-red": { - "version": "0.0.25", - "resolved": "https://registry.npmjs.org/code-red/-/code-red-0.0.25.tgz", - "integrity": "sha512-KxR5fi6hN3Lhg/VFBaucVaWe5LT8HvgKE7+q09ZV73PbBuuLWSK8DKeOtZTbpZ41BLimaggzawSgK7HQr+m1DA==", + "version": "0.0.26", + "resolved": "https://registry.npmjs.org/code-red/-/code-red-0.0.26.tgz", + "integrity": "sha512-W4t68vk3xJjmkbuAKfEtaj7E+K82BtV+A4VjBlxHA6gDoSLc+sTB643JdJMSk27vpp5iEqHFuGnHieQGy/GmUQ==", "dev": true, "requires": { "acorn": "^7.1.0", diff --git a/package.json b/package.json index 8584ac6ff8..27ee2f5f94 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "acorn": "^7.1.0", "agadoo": "^1.1.0", "c8": "^5.0.1", - "code-red": "0.0.25", + "code-red": "0.0.26", "codecov": "^3.5.0", "css-tree": "1.0.0-alpha22", "eslint": "^6.3.0", diff --git a/test/js/samples/action-custom-event-handler/expected.js b/test/js/samples/action-custom-event-handler/expected.js index 2f863217b6..60de121165 100644 --- a/test/js/samples/action-custom-event-handler/expected.js +++ b/test/js/samples/action-custom-event-handler/expected.js @@ -24,7 +24,7 @@ function create_fragment(ctx) { foo_action = foo.call(null, button, ctx[1]) || ({}); }, p(ctx, [dirty]) { - if (is_function(foo_action.update) && dirty & /* _id9uocqrtmw00_1_ */ 1) foo_action.update.call(null, ctx[1]); + if (is_function(foo_action.update) && dirty & /* bar */ 1) foo_action.update.call(null, ctx[1]); }, i: noop, o: noop, diff --git a/test/js/samples/bind-open/expected.js b/test/js/samples/bind-open/expected.js index a2bc78f5d9..d64715f1af 100644 --- a/test/js/samples/bind-open/expected.js +++ b/test/js/samples/bind-open/expected.js @@ -28,7 +28,7 @@ function create_fragment(ctx) { details.open = ctx[0]; }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* open */ 1) { details.open = ctx[0]; } }, diff --git a/test/js/samples/capture-inject-dev-only/expected.js b/test/js/samples/capture-inject-dev-only/expected.js index fd5ee97ce3..58660caf7e 100644 --- a/test/js/samples/capture-inject-dev-only/expected.js +++ b/test/js/samples/capture-inject-dev-only/expected.js @@ -38,9 +38,9 @@ function create_fragment(ctx) { set_input_value(input, ctx[0]); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t0, ctx[0]); + if (dirty & /* foo */ 1) set_data(t0, ctx[0]); - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && input.value !== ctx[0]) { + if (dirty & /* foo */ 1 && input.value !== ctx[0]) { set_input_value(input, ctx[0]); } }, diff --git a/test/js/samples/collapses-text-around-comments/expected.js b/test/js/samples/collapses-text-around-comments/expected.js index 59bf38e900..8e9aa91bb0 100644 --- a/test/js/samples/collapses-text-around-comments/expected.js +++ b/test/js/samples/collapses-text-around-comments/expected.js @@ -35,7 +35,7 @@ function create_fragment(ctx) { append(p, t); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t, ctx[0]); + if (dirty & /* foo */ 1) set_data(t, ctx[0]); }, i: noop, o: noop, diff --git a/test/js/samples/component-static-var/expected.js b/test/js/samples/component-static-var/expected.js index f5ec221c02..d28cec4f70 100644 --- a/test/js/samples/component-static-var/expected.js +++ b/test/js/samples/component-static-var/expected.js @@ -48,10 +48,10 @@ function create_fragment(ctx) { }, p(ctx, [dirty]) { const bar_changes = {}; - if (dirty & /* _id9uocqrtmw00_1_ */ 1) bar_changes.x = ctx[0]; + if (dirty & /* z */ 1) bar_changes.x = ctx[0]; bar.$set(bar_changes); - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && input.value !== ctx[0]) { + if (dirty & /* z */ 1 && input.value !== ctx[0]) { set_input_value(input, ctx[0]); } }, diff --git a/test/js/samples/component-store-access-invalidate/expected.js b/test/js/samples/component-store-access-invalidate/expected.js index e1dae76e89..abbb3f6e7c 100644 --- a/test/js/samples/component-store-access-invalidate/expected.js +++ b/test/js/samples/component-store-access-invalidate/expected.js @@ -29,7 +29,7 @@ function create_fragment(ctx) { append(h1, t); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t, ctx[0]); + if (dirty & /* $foo */ 1) set_data(t, ctx[0]); }, i: noop, o: noop, diff --git a/test/js/samples/component-store-reassign-invalidate/expected.js b/test/js/samples/component-store-reassign-invalidate/expected.js index ff30f3a2a8..8c8dec8d44 100644 --- a/test/js/samples/component-store-reassign-invalidate/expected.js +++ b/test/js/samples/component-store-reassign-invalidate/expected.js @@ -40,7 +40,7 @@ function create_fragment(ctx) { insert(target, button, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data(t0, ctx[1]); + if (dirty & /* $foo */ 2) set_data(t0, ctx[1]); }, i: noop, o: noop, diff --git a/test/js/samples/data-attribute/expected.js b/test/js/samples/data-attribute/expected.js index 424799fdf3..0a8b3e5a4e 100644 --- a/test/js/samples/data-attribute/expected.js +++ b/test/js/samples/data-attribute/expected.js @@ -30,7 +30,7 @@ function create_fragment(ctx) { insert(target, div1, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* bar */ 1) { attr(div1, "data-foo", ctx[0]); } }, diff --git a/test/js/samples/debug-empty/expected.js b/test/js/samples/debug-empty/expected.js index 8865fb332e..e47424edc4 100644 --- a/test/js/samples/debug-empty/expected.js +++ b/test/js/samples/debug-empty/expected.js @@ -45,7 +45,7 @@ function create_fragment(ctx) { insert_dev(target, t3, anchor); }, p: function update(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data_dev(t1, ctx[0]); + if (dirty & /* name */ 1) set_data_dev(t1, ctx[0]); debugger; }, i: noop, diff --git a/test/js/samples/debug-foo-bar-baz-things/expected.js b/test/js/samples/debug-foo-bar-baz-things/expected.js index 0dfe1a0829..1f371e777c 100644 --- a/test/js/samples/debug-foo-bar-baz-things/expected.js +++ b/test/js/samples/debug-foo-bar-baz-things/expected.js @@ -54,9 +54,9 @@ function create_each_block(ctx) { insert_dev(target, t1, anchor); }, p: function update(ctx, dirty) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t0_value !== (t0_value = ctx[4].name + "")) set_data_dev(t0, t0_value); + if (dirty & /* things */ 1 && t0_value !== (t0_value = ctx[4].name + "")) set_data_dev(t0, t0_value); - if (dirty & /* _id9uocqrtmw00_1_ */ 15) { + if (dirty & /* foo, bar, baz, things */ 15) { const foo = ctx[1]; const bar = ctx[2]; const baz = ctx[3]; @@ -120,7 +120,7 @@ function create_fragment(ctx) { append_dev(p, t2); }, p: function update(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* things */ 1) { each_value = ctx[0]; let i; @@ -143,7 +143,7 @@ function create_fragment(ctx) { each_blocks.length = each_value.length; } - if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data_dev(t2, ctx[1]); + if (dirty & /* foo */ 2) set_data_dev(t2, ctx[1]); }, i: noop, o: noop, diff --git a/test/js/samples/debug-foo/expected.js b/test/js/samples/debug-foo/expected.js index 21fe13073e..996c99a05f 100644 --- a/test/js/samples/debug-foo/expected.js +++ b/test/js/samples/debug-foo/expected.js @@ -51,9 +51,9 @@ function create_each_block(ctx) { insert_dev(target, t1, anchor); }, p: function update(ctx, dirty) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t0_value !== (t0_value = ctx[2].name + "")) set_data_dev(t0, t0_value); + if (dirty & /* things */ 1 && t0_value !== (t0_value = ctx[2].name + "")) set_data_dev(t0, t0_value); - if (dirty & /* _id9uocqrtmw00_1_ */ 2) { + if (dirty & /* foo */ 2) { const foo = ctx[1]; console.log({ foo }); debugger; @@ -114,7 +114,7 @@ function create_fragment(ctx) { append_dev(p, t2); }, p: function update(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* things */ 1) { each_value = ctx[0]; let i; @@ -137,7 +137,7 @@ function create_fragment(ctx) { each_blocks.length = each_value.length; } - if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data_dev(t2, ctx[1]); + if (dirty & /* foo */ 2) set_data_dev(t2, ctx[1]); }, i: noop, o: noop, diff --git a/test/js/samples/debug-hoisted/expected.js b/test/js/samples/debug-hoisted/expected.js index 324c02e2c5..bc0a4d701c 100644 --- a/test/js/samples/debug-hoisted/expected.js +++ b/test/js/samples/debug-hoisted/expected.js @@ -24,7 +24,7 @@ function create_fragment(ctx) { }, m: noop, p: function update(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 3) { + if (dirty & /* obj, kobzol */ 3) { const obj = ctx[0]; const kobzol = ctx[1]; console.log({ obj, kobzol }); diff --git a/test/js/samples/debug-no-dependencies/expected.js b/test/js/samples/debug-no-dependencies/expected.js index 1c1835292c..87555e023d 100644 --- a/test/js/samples/debug-no-dependencies/expected.js +++ b/test/js/samples/debug-no-dependencies/expected.js @@ -89,7 +89,7 @@ function create_fragment(ctx) { insert_dev(target, each_1_anchor, anchor); }, p: function update(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 0) { + if (dirty & /* things */ 0) { each_value = things; let i; diff --git a/test/js/samples/deconflict-builtins/expected.js b/test/js/samples/deconflict-builtins/expected.js index 5436bbefcf..93aee0f931 100644 --- a/test/js/samples/deconflict-builtins/expected.js +++ b/test/js/samples/deconflict-builtins/expected.js @@ -36,7 +36,7 @@ function create_each_block(ctx) { append(span, t); }, p(ctx, dirty) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t_value !== (t_value = ctx[1] + "")) set_data(t, t_value); + if (dirty & /* createElement */ 1 && t_value !== (t_value = ctx[1] + "")) set_data(t, t_value); }, d(detaching) { if (detaching) detach(span); @@ -69,7 +69,7 @@ function create_fragment(ctx) { insert(target, each_1_anchor, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* createElement */ 1) { each_value = ctx[0]; let i; diff --git a/test/js/samples/dev-warning-missing-data-computed/expected.js b/test/js/samples/dev-warning-missing-data-computed/expected.js index c5050dc4b6..b189b3ba4d 100644 --- a/test/js/samples/dev-warning-missing-data-computed/expected.js +++ b/test/js/samples/dev-warning-missing-data-computed/expected.js @@ -42,8 +42,8 @@ function create_fragment(ctx) { append_dev(p, t2); }, p: function update(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t0_value !== (t0_value = Math.max(0, ctx[0]) + "")) set_data_dev(t0, t0_value); - if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data_dev(t2, ctx[1]); + if (dirty & /* foo */ 1 && t0_value !== (t0_value = Math.max(0, ctx[0]) + "")) set_data_dev(t0, t0_value); + if (dirty & /* bar */ 2) set_data_dev(t2, ctx[1]); }, i: noop, o: noop, @@ -86,7 +86,7 @@ function instance($$self, $$props, $$invalidate) { }; $$self.$$.update = () => { - if ($$self.$$.dirty & /* _id9uocqrtmw00_1_ */ 1) { + if ($$self.$$.dirty & /* foo */ 1) { $: $$invalidate(1, bar = foo * 2); } }; diff --git a/test/js/samples/each-block-array-literal/expected.js b/test/js/samples/each-block-array-literal/expected.js index ee0c9a3b4e..7438540bcc 100644 --- a/test/js/samples/each-block-array-literal/expected.js +++ b/test/js/samples/each-block-array-literal/expected.js @@ -36,7 +36,7 @@ function create_each_block(ctx) { append(span, t); }, p(ctx, dirty) { - if (dirty & /* _id9uocqrtmw00_1_ */ 31 && t_value !== (t_value = ctx[5] + "")) set_data(t, t_value); + if (dirty & /* a, b, c, d, e */ 31 && t_value !== (t_value = ctx[5] + "")) set_data(t, t_value); }, d(detaching) { if (detaching) detach(span); @@ -69,7 +69,7 @@ function create_fragment(ctx) { insert(target, each_1_anchor, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 31) { + if (dirty & /* a, b, c, d, e */ 31) { each_value = [ctx[0], ctx[1], ctx[2], ctx[3], ctx[4]]; let i; diff --git a/test/js/samples/each-block-changed-check/expected.js b/test/js/samples/each-block-changed-check/expected.js index aed0fae12a..e7cfc3143c 100644 --- a/test/js/samples/each-block-changed-check/expected.js +++ b/test/js/samples/each-block-changed-check/expected.js @@ -70,9 +70,9 @@ function create_each_block(ctx) { html_tag.m(div); }, p(ctx, dirty) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t2_value !== (t2_value = ctx[4].author + "")) set_data(t2, t2_value); - if (dirty & /* _id9uocqrtmw00_1_ */ 7 && t4_value !== (t4_value = ctx[1](ctx[4].time, ctx[2]) + "")) set_data(t4, t4_value); - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && raw_value !== (raw_value = ctx[4].html + "")) html_tag.p(raw_value); + if (dirty & /* comments */ 1 && t2_value !== (t2_value = ctx[4].author + "")) set_data(t2, t2_value); + if (dirty & /* elapsed, comments, time */ 7 && t4_value !== (t4_value = ctx[1](ctx[4].time, ctx[2]) + "")) set_data(t4, t4_value); + if (dirty & /* comments */ 1 && raw_value !== (raw_value = ctx[4].html + "")) html_tag.p(raw_value); }, d(detaching) { if (detaching) detach(div); @@ -111,7 +111,7 @@ function create_fragment(ctx) { append(p, t1); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 7) { + if (dirty & /* comments, elapsed, time */ 7) { each_value = ctx[0]; let i; @@ -134,7 +134,7 @@ function create_fragment(ctx) { each_blocks.length = each_value.length; } - if (dirty & /* _id9uocqrtmw00_1_ */ 8) set_data(t1, ctx[3]); + if (dirty & /* foo */ 8) set_data(t1, ctx[3]); }, i: noop, o: noop, diff --git a/test/js/samples/each-block-keyed-animated/expected.js b/test/js/samples/each-block-keyed-animated/expected.js index 7ffde4a8b8..6df3a817c0 100644 --- a/test/js/samples/each-block-keyed-animated/expected.js +++ b/test/js/samples/each-block-keyed-animated/expected.js @@ -44,7 +44,7 @@ function create_each_block(key_1, ctx) { append(div, t); }, p(ctx, dirty) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value); + if (dirty & /* things */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value); }, r() { rect = div.getBoundingClientRect(); diff --git a/test/js/samples/each-block-keyed/expected.js b/test/js/samples/each-block-keyed/expected.js index 23b294afd9..025e08d4f3 100644 --- a/test/js/samples/each-block-keyed/expected.js +++ b/test/js/samples/each-block-keyed/expected.js @@ -40,7 +40,7 @@ function create_each_block(key_1, ctx) { append(div, t); }, p(ctx, dirty) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value); + if (dirty & /* things */ 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value); }, d(detaching) { if (detaching) detach(div); diff --git a/test/js/samples/event-handler-dynamic/expected.js b/test/js/samples/event-handler-dynamic/expected.js index 4d1e9eb6b6..552c48f9dd 100644 --- a/test/js/samples/event-handler-dynamic/expected.js +++ b/test/js/samples/event-handler-dynamic/expected.js @@ -63,7 +63,7 @@ function create_fragment(ctx) { }, p(new_ctx, [dirty]) { ctx = new_ctx; - if (dirty & /* _id9uocqrtmw00_1_ */ 2) set_data(t4, ctx[1]); + if (dirty & /* number */ 2) set_data(t4, ctx[1]); }, i: noop, o: noop, diff --git a/test/js/samples/inline-style-optimized-multiple/expected.js b/test/js/samples/inline-style-optimized-multiple/expected.js index 6af193263a..ba173ffc38 100644 --- a/test/js/samples/inline-style-optimized-multiple/expected.js +++ b/test/js/samples/inline-style-optimized-multiple/expected.js @@ -23,11 +23,11 @@ function create_fragment(ctx) { insert(target, div, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* color */ 1) { set_style(div, "color", ctx[0]); } - if (dirty & /* _id9uocqrtmw00_1_ */ 6) { + if (dirty & /* x, y */ 6) { set_style(div, "transform", "translate(" + ctx[1] + "px," + ctx[2] + "px)"); } }, diff --git a/test/js/samples/inline-style-optimized-url/expected.js b/test/js/samples/inline-style-optimized-url/expected.js index 627f22d693..862d16421f 100644 --- a/test/js/samples/inline-style-optimized-url/expected.js +++ b/test/js/samples/inline-style-optimized-url/expected.js @@ -22,7 +22,7 @@ function create_fragment(ctx) { insert(target, div, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* data */ 1) { set_style(div, "background", "url(data:image/png;base64," + ctx[0] + ")"); } }, diff --git a/test/js/samples/inline-style-optimized/expected.js b/test/js/samples/inline-style-optimized/expected.js index 948735aace..cf5241153c 100644 --- a/test/js/samples/inline-style-optimized/expected.js +++ b/test/js/samples/inline-style-optimized/expected.js @@ -22,7 +22,7 @@ function create_fragment(ctx) { insert(target, div, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* color */ 1) { set_style(div, "color", ctx[0]); } }, diff --git a/test/js/samples/inline-style-unoptimized/expected.js b/test/js/samples/inline-style-unoptimized/expected.js index 5d55aa84f2..b31160fb7f 100644 --- a/test/js/samples/inline-style-unoptimized/expected.js +++ b/test/js/samples/inline-style-unoptimized/expected.js @@ -31,11 +31,11 @@ function create_fragment(ctx) { insert(target, div1, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* style */ 1) { attr(div0, "style", ctx[0]); } - if (dirty & /* _id9uocqrtmw00_1_ */ 6 && div1_style_value !== (div1_style_value = "" + (ctx[1] + ": " + ctx[2]))) { + if (dirty & /* key, value */ 6 && div1_style_value !== (div1_style_value = "" + (ctx[1] + ": " + ctx[2]))) { attr(div1, "style", div1_style_value); } }, diff --git a/test/js/samples/input-no-initial-value/expected.js b/test/js/samples/input-no-initial-value/expected.js index 24e2ede21f..30deda64f1 100644 --- a/test/js/samples/input-no-initial-value/expected.js +++ b/test/js/samples/input-no-initial-value/expected.js @@ -41,7 +41,7 @@ function create_fragment(ctx) { append(form, button); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && input.value !== ctx[0]) { + if (dirty & /* test */ 1 && input.value !== ctx[0]) { set_input_value(input, ctx[0]); } }, diff --git a/test/js/samples/input-range/expected.js b/test/js/samples/input-range/expected.js index 38ce1087dc..85d784a17c 100644 --- a/test/js/samples/input-range/expected.js +++ b/test/js/samples/input-range/expected.js @@ -29,7 +29,7 @@ function create_fragment(ctx) { set_input_value(input, ctx[0]); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* value */ 1) { set_input_value(input, ctx[0]); } }, diff --git a/test/js/samples/input-without-blowback-guard/expected.js b/test/js/samples/input-without-blowback-guard/expected.js index 02b3463be1..bc95660713 100644 --- a/test/js/samples/input-without-blowback-guard/expected.js +++ b/test/js/samples/input-without-blowback-guard/expected.js @@ -26,7 +26,7 @@ function create_fragment(ctx) { input.checked = ctx[0]; }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) { + if (dirty & /* foo */ 1) { input.checked = ctx[0]; } }, diff --git a/test/js/samples/instrumentation-script-if-no-block/expected.js b/test/js/samples/instrumentation-script-if-no-block/expected.js index 893c331b44..753b09031a 100644 --- a/test/js/samples/instrumentation-script-if-no-block/expected.js +++ b/test/js/samples/instrumentation-script-if-no-block/expected.js @@ -40,7 +40,7 @@ function create_fragment(ctx) { append(p, t3); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t3, ctx[0]); + if (dirty & /* x */ 1) set_data(t3, ctx[0]); }, i: noop, o: noop, diff --git a/test/js/samples/instrumentation-script-x-equals-x/expected.js b/test/js/samples/instrumentation-script-x-equals-x/expected.js index 4b3f7a2c2d..d867e0cddb 100644 --- a/test/js/samples/instrumentation-script-x-equals-x/expected.js +++ b/test/js/samples/instrumentation-script-x-equals-x/expected.js @@ -41,7 +41,7 @@ function create_fragment(ctx) { append(p, t3); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value); + if (dirty & /* things */ 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value); }, i: noop, o: noop, diff --git a/test/js/samples/instrumentation-template-if-no-block/expected.js b/test/js/samples/instrumentation-template-if-no-block/expected.js index 291fc9aa33..3305db76cb 100644 --- a/test/js/samples/instrumentation-template-if-no-block/expected.js +++ b/test/js/samples/instrumentation-template-if-no-block/expected.js @@ -40,7 +40,7 @@ function create_fragment(ctx) { append(p, t3); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t3, ctx[0]); + if (dirty & /* x */ 1) set_data(t3, ctx[0]); }, i: noop, o: noop, diff --git a/test/js/samples/instrumentation-template-x-equals-x/expected.js b/test/js/samples/instrumentation-template-x-equals-x/expected.js index b3e5f59ea3..6e9b20db6b 100644 --- a/test/js/samples/instrumentation-template-x-equals-x/expected.js +++ b/test/js/samples/instrumentation-template-x-equals-x/expected.js @@ -41,7 +41,7 @@ function create_fragment(ctx) { append(p, t3); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value); + if (dirty & /* things */ 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value); }, i: noop, o: noop, diff --git a/test/js/samples/media-bindings/expected.js b/test/js/samples/media-bindings/expected.js index b5b8450216..11201eb4be 100644 --- a/test/js/samples/media-bindings/expected.js +++ b/test/js/samples/media-bindings/expected.js @@ -68,19 +68,19 @@ function create_fragment(ctx) { } }, p(ctx, [dirty]) { - if (!audio_updating && dirty & /* _id9uocqrtmw00_1_ */ 8 && !isNaN(ctx[3])) { + if (!audio_updating && dirty & /* currentTime */ 8 && !isNaN(ctx[3])) { audio.currentTime = ctx[3]; } - if (dirty & /* _id9uocqrtmw00_1_ */ 32 && audio_is_paused !== (audio_is_paused = ctx[5])) { + if (dirty & /* paused */ 32 && audio_is_paused !== (audio_is_paused = ctx[5])) { audio[audio_is_paused ? "pause" : "play"](); } - if (dirty & /* _id9uocqrtmw00_1_ */ 64 && !isNaN(ctx[6])) { + if (dirty & /* volume */ 64 && !isNaN(ctx[6])) { audio.volume = ctx[6]; } - if (dirty & /* _id9uocqrtmw00_1_ */ 128 && !isNaN(ctx[7])) { + if (dirty & /* playbackRate */ 128 && !isNaN(ctx[7])) { audio.playbackRate = ctx[7]; } diff --git a/test/js/samples/reactive-values-non-topologically-ordered/expected.js b/test/js/samples/reactive-values-non-topologically-ordered/expected.js index 2c1f2ace9f..8b7cbf3442 100644 --- a/test/js/samples/reactive-values-non-topologically-ordered/expected.js +++ b/test/js/samples/reactive-values-non-topologically-ordered/expected.js @@ -11,11 +11,11 @@ function instance($$self, $$props, $$invalidate) { }; $$self.$$.update = () => { - if ($$self.$$.dirty & /* _id9uocqrtmw00_1_ */ 1) { + if ($$self.$$.dirty & /* x */ 1) { $: $$invalidate(2, b = x); } - if ($$self.$$.dirty & /* _id9uocqrtmw00_1_ */ 4) { + if ($$self.$$.dirty & /* b */ 4) { $: a = b; } }; diff --git a/test/js/samples/reactive-values-non-writable-dependencies/expected.js b/test/js/samples/reactive-values-non-writable-dependencies/expected.js index a12d9cb697..4a53580adc 100644 --- a/test/js/samples/reactive-values-non-writable-dependencies/expected.js +++ b/test/js/samples/reactive-values-non-writable-dependencies/expected.js @@ -11,7 +11,7 @@ function instance($$self, $$props, $$invalidate) { }; $$self.$$.update = () => { - if ($$self.$$.dirty & /* _id9uocqrtmw00_1_ */ 3) { + if ($$self.$$.dirty & /* a, b */ 3) { $: console.log("max", Math.max(a, b)); } }; diff --git a/test/js/samples/select-dynamic-value/expected.js b/test/js/samples/select-dynamic-value/expected.js index 44e343c5ef..d9102dbb38 100644 --- a/test/js/samples/select-dynamic-value/expected.js +++ b/test/js/samples/select-dynamic-value/expected.js @@ -44,7 +44,7 @@ function create_fragment(ctx) { } }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && select_value_value !== (select_value_value = ctx[0])) { + if (dirty & /* current */ 1 && select_value_value !== (select_value_value = ctx[0])) { for (var i = 0; i < select.options.length; i += 1) { var option = select.options[i]; diff --git a/test/js/samples/src-attribute-check/expected.js b/test/js/samples/src-attribute-check/expected.js index 7d04c4a350..23ed56772e 100644 --- a/test/js/samples/src-attribute-check/expected.js +++ b/test/js/samples/src-attribute-check/expected.js @@ -45,11 +45,11 @@ function create_fragment(ctx) { insert(target, img1, anchor); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && img0.src !== (img0_src_value = ctx[0])) { + if (dirty & /* url */ 1 && img0.src !== (img0_src_value = ctx[0])) { attr(img0, "src", img0_src_value); } - if (dirty & /* _id9uocqrtmw00_1_ */ 2 && img1.src !== (img1_src_value = "" + (ctx[1] + ".jpg"))) { + if (dirty & /* slug */ 2 && img1.src !== (img1_src_value = "" + (ctx[1] + ".jpg"))) { attr(img1, "src", img1_src_value); } }, diff --git a/test/js/samples/title/expected.js b/test/js/samples/title/expected.js index 3bc02f60c6..06755a7f97 100644 --- a/test/js/samples/title/expected.js +++ b/test/js/samples/title/expected.js @@ -9,7 +9,7 @@ function create_fragment(ctx) { c: noop, m: noop, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && title_value !== (title_value = "a " + ctx[0] + " title")) { + if (dirty & /* custom */ 1 && title_value !== (title_value = "a " + ctx[0] + " title")) { document.title = title_value; } }, diff --git a/test/js/samples/unchanged-expression/expected.js b/test/js/samples/unchanged-expression/expected.js index 0c0b779270..3539d115d6 100644 --- a/test/js/samples/unchanged-expression/expected.js +++ b/test/js/samples/unchanged-expression/expected.js @@ -57,7 +57,7 @@ function create_fragment(ctx) { append(p3, t9); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t9, ctx[0]); + if (dirty & /* world3 */ 1) set_data(t9, ctx[0]); }, i: noop, o: noop, diff --git a/test/js/samples/unreferenced-state-not-invalidated/expected.js b/test/js/samples/unreferenced-state-not-invalidated/expected.js index c0f6da2928..ff3c3e597f 100644 --- a/test/js/samples/unreferenced-state-not-invalidated/expected.js +++ b/test/js/samples/unreferenced-state-not-invalidated/expected.js @@ -28,7 +28,7 @@ function create_fragment(ctx) { append(p, t); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t, ctx[0]); + if (dirty & /* y */ 1) set_data(t, ctx[0]); }, i: noop, o: noop, @@ -58,7 +58,7 @@ function instance($$self, $$props, $$invalidate) { let y; $$self.$$.update = () => { - if ($$self.$$.dirty & /* _id9uocqrtmw00_1_ */ 2) { + if ($$self.$$.dirty & /* b */ 2) { $: $$invalidate(0, y = b * 2); } }; diff --git a/test/js/samples/video-bindings/expected.js b/test/js/samples/video-bindings/expected.js index 71ab2c545d..0b318bddc0 100644 --- a/test/js/samples/video-bindings/expected.js +++ b/test/js/samples/video-bindings/expected.js @@ -48,7 +48,7 @@ function create_fragment(ctx) { video_resize_listener = add_resize_listener(video, ctx[4].bind(video)); }, p(ctx, [dirty]) { - if (!video_updating && dirty & /* _id9uocqrtmw00_1_ */ 1 && !isNaN(ctx[0])) { + if (!video_updating && dirty & /* currentTime */ 1 && !isNaN(ctx[0])) { video.currentTime = ctx[0]; } diff --git a/test/js/samples/window-binding-scroll/expected.js b/test/js/samples/window-binding-scroll/expected.js index 11e7160646..b7b4603356 100644 --- a/test/js/samples/window-binding-scroll/expected.js +++ b/test/js/samples/window-binding-scroll/expected.js @@ -47,14 +47,14 @@ function create_fragment(ctx) { append(p, t1); }, p(ctx, [dirty]) { - if (dirty & /* _id9uocqrtmw00_1_ */ 1 && !scrolling) { + if (dirty & /* y */ 1 && !scrolling) { scrolling = true; clearTimeout(scrolling_timeout); scrollTo(window.pageXOffset, ctx[0]); scrolling_timeout = setTimeout(clear_scrolling, 100); } - if (dirty & /* _id9uocqrtmw00_1_ */ 1) set_data(t1, ctx[0]); + if (dirty & /* y */ 1) set_data(t1, ctx[0]); }, i: noop, o: noop,