From 0dd46b0873a91ac03cbdce45435e9dcfd9687696 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 26 Jan 2019 22:00:06 -0500 Subject: [PATCH] update js tests --- test/js/samples/component-static-array/expected.js | 8 ++++---- .../samples/component-static-immutable/expected.js | 8 ++++---- .../samples/component-static-immutable2/expected.js | 8 ++++---- test/js/samples/component-static/expected.js | 8 ++++---- test/js/samples/dynamic-import/expected.js | 8 ++++---- test/js/samples/non-imported-component/expected.js | 12 ++++++------ 6 files changed, 26 insertions(+), 26 deletions(-) diff --git a/test/js/samples/component-static-array/expected.js b/test/js/samples/component-static-array/expected.js index 7fbcc27382..7e8b1d8581 100644 --- a/test/js/samples/component-static-array/expected.js +++ b/test/js/samples/component-static-array/expected.js @@ -17,15 +17,15 @@ function create_fragment(ctx) { p: noop, - i() { + i(local) { if (current) return; - nested.$$.fragment.i(); + nested.$$.fragment.i(local); current = true; }, - o() { - if (nested) nested.$$.fragment.o(); + o(local) { + nested.$$.fragment.o(local); current = false; }, diff --git a/test/js/samples/component-static-immutable/expected.js b/test/js/samples/component-static-immutable/expected.js index e3dc618115..aa5f88b86f 100644 --- a/test/js/samples/component-static-immutable/expected.js +++ b/test/js/samples/component-static-immutable/expected.js @@ -17,15 +17,15 @@ function create_fragment(ctx) { p: noop, - i() { + i(local) { if (current) return; - nested.$$.fragment.i(); + nested.$$.fragment.i(local); current = true; }, - o() { - if (nested) nested.$$.fragment.o(); + o(local) { + nested.$$.fragment.o(local); current = false; }, diff --git a/test/js/samples/component-static-immutable2/expected.js b/test/js/samples/component-static-immutable2/expected.js index e3dc618115..aa5f88b86f 100644 --- a/test/js/samples/component-static-immutable2/expected.js +++ b/test/js/samples/component-static-immutable2/expected.js @@ -17,15 +17,15 @@ function create_fragment(ctx) { p: noop, - i() { + i(local) { if (current) return; - nested.$$.fragment.i(); + nested.$$.fragment.i(local); current = true; }, - o() { - if (nested) nested.$$.fragment.o(); + o(local) { + nested.$$.fragment.o(local); current = false; }, diff --git a/test/js/samples/component-static/expected.js b/test/js/samples/component-static/expected.js index 014e1caefb..113a858257 100644 --- a/test/js/samples/component-static/expected.js +++ b/test/js/samples/component-static/expected.js @@ -17,15 +17,15 @@ function create_fragment(ctx) { p: noop, - i() { + i(local) { if (current) return; - nested.$$.fragment.i(); + nested.$$.fragment.i(local); current = true; }, - o() { - if (nested) nested.$$.fragment.o(); + o(local) { + nested.$$.fragment.o(local); current = false; }, diff --git a/test/js/samples/dynamic-import/expected.js b/test/js/samples/dynamic-import/expected.js index 8ccacdd398..7f7f8e39fd 100644 --- a/test/js/samples/dynamic-import/expected.js +++ b/test/js/samples/dynamic-import/expected.js @@ -18,15 +18,15 @@ function create_fragment(ctx) { p: noop, - i() { + i(local) { if (current) return; - lazyload.$$.fragment.i(); + lazyload.$$.fragment.i(local); current = true; }, - o() { - if (lazyload) lazyload.$$.fragment.o(); + o(local) { + lazyload.$$.fragment.o(local); current = false; }, diff --git a/test/js/samples/non-imported-component/expected.js b/test/js/samples/non-imported-component/expected.js index a917990426..0da9a66b98 100644 --- a/test/js/samples/non-imported-component/expected.js +++ b/test/js/samples/non-imported-component/expected.js @@ -24,18 +24,18 @@ function create_fragment(ctx) { p: noop, - i() { + i(local) { if (current) return; - imported.$$.fragment.i(); + imported.$$.fragment.i(local); - nonimported.$$.fragment.i(); + nonimported.$$.fragment.i(local); current = true; }, - o() { - if (imported) imported.$$.fragment.o(); - if (nonimported) nonimported.$$.fragment.o(); + o(local) { + imported.$$.fragment.o(local); + nonimported.$$.fragment.o(local); current = false; },