From 4b3da75480109fb8bf6562584252bedd97a9ca06 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 15 Apr 2018 22:15:08 -0400 Subject: [PATCH] remove v1 runtime tests --- test/runtime/index.js | 20 +++---- test/runtime/samples/action-this/main.html | 2 +- .../samples/action-update/main-v2.html | 52 ------------------- test/runtime/samples/action-update/main.html | 4 +- .../samples/attribute-boolean-false/main.html | 2 +- .../attribute-boolean-indeterminate/main.html | 2 +- .../samples/attribute-boolean-true/main.html | 2 +- .../attribute-dynamic-multiple/main.html | 6 +-- .../attribute-dynamic-quotemarks/main.html | 2 +- .../attribute-dynamic-reserved/main.html | 2 +- .../attribute-dynamic-shorthand/main-v2.html | 9 ---- .../attribute-dynamic-shorthand/main.html | 2 +- .../samples/attribute-dynamic-type/main.html | 2 +- .../samples/attribute-dynamic/main.html | 2 +- .../samples/attribute-namespaced/main.html | 2 +- .../attribute-partial-number/Component.html | 2 +- .../attribute-prefer-expression/main.html | 4 +- test/runtime/samples/autofocus/main.html | 4 +- .../samples/await-component-oncreate/Foo.html | 4 +- .../await-component-oncreate/main.html | 6 +-- .../samples/await-set-simultaneous/main.html | 14 ++--- .../samples/await-then-catch-anchor/main.html | 12 ++--- .../samples/await-then-catch-event/main.html | 10 ++-- .../samples/await-then-catch-if/main.html | 18 +++---- .../await-then-catch-in-slot/main.html | 12 ++--- .../await-then-catch-multiple/main.html | 24 ++++----- .../await-then-catch-non-promise/main.html | 12 ++--- .../samples/await-then-catch/main.html | 12 ++--- .../samples/await-then-shorthand/main.html | 10 ++-- .../binding-indirect-computed/main.html | 10 ++-- .../samples/binding-indirect/main.html | 14 ++--- .../main.html | 10 ++-- .../main.html | 8 +-- .../binding-input-checkbox-group/main.html | 8 +-- .../main.html | 4 +- .../samples/binding-input-checkbox/main.html | 2 +- .../samples/binding-input-number/main.html | 2 +- .../binding-input-radio-group/main.html | 8 +-- .../binding-input-range-change/main.html | 2 +- .../samples/binding-input-range/main.html | 2 +- .../binding-input-text-contextual/main.html | 6 +-- .../binding-input-text-deconflicted/main.html | 2 +- .../main.html | 2 +- .../main.html | 2 +- .../main.html | 6 +-- .../main.html | 6 +-- .../samples/binding-input-text-deep/main.html | 2 +- .../samples/binding-input-text/main.html | 2 +- .../main.html | 8 +-- .../binding-select-in-each-block/main.html | 4 +- .../binding-select-in-yield/Modal.html | 4 +- .../samples/binding-select-in-yield/main.html | 8 +-- .../main.html | 4 +- .../binding-select-initial-value/main.html | 4 +- .../samples/binding-select-late/main.html | 8 +-- .../samples/binding-select-multiple/main.html | 2 +- .../samples/binding-select-optgroup/main.html | 2 +- test/runtime/samples/binding-select/main.html | 4 +- .../samples/binding-textarea/main.html | 2 +- .../samples/bindings-before-oncreate/Two.html | 2 +- .../samples/bindings-coalesced/Foo.html | 4 +- .../samples/bindings-coalesced/main.html | 2 +- .../component-binding-blowback-b/main.html | 10 ++-- .../component-binding-blowback-c/Nested.html | 2 +- .../component-binding-blowback-c/main.html | 10 ++-- .../component-binding-blowback/main.html | 4 +- .../component-binding-computed/Nested.html | 2 +- .../component-binding-computed/main.html | 6 +-- .../component-binding-conditional-b/Bar.html | 2 +- .../component-binding-conditional-b/Foo.html | 2 +- .../component-binding-conditional-b/main.html | 8 +-- .../component-binding-conditional/Bar.html | 2 +- .../component-binding-conditional/Foo.html | 2 +- .../component-binding-conditional/main.html | 8 +-- .../ComponentSelector.html | 6 +-- .../component-binding-deep-b/main.html | 4 +- .../samples/component-binding-deep/main.html | 2 +- .../component-binding-each-nested/main.html | 6 +-- .../component-binding-each-object/Widget.html | 2 +- .../component-binding-each-object/main.html | 4 +- .../samples/component-binding-each/main.html | 6 +-- .../component-binding-infinite-loop/B.html | 8 +-- .../component-binding-infinite-loop/C.html | 6 +-- .../samples/component-binding-nested/Bar.html | 2 +- .../samples/component-binding-nested/Baz.html | 2 +- .../samples/component-binding-nested/Foo.html | 2 +- .../component-binding-nested/main.html | 2 +- .../main.html | 2 +- .../main.html | 6 +-- .../samples/component-binding/main.html | 2 +- .../component-data-dynamic-late/Widget.html | 2 +- .../component-data-dynamic-late/main.html | 6 +-- .../Widget.html | 2 +- .../main.html | 2 +- .../component-data-dynamic/Widget.html | 8 +-- .../samples/component-data-dynamic/main.html | 2 +- .../samples/component-data-empty/Widget.html | 2 +- .../Link.html | 2 +- .../component-data-static-boolean/Foo.html | 2 +- .../samples/component-data-static/Widget.html | 4 +- .../samples/component-data-static/main.html | 2 +- .../samples/component-events-each/main.html | 4 +- .../samples/component-events/main.html | 4 +- .../component-if-placement/Component.html | 4 +- .../samples/component-if-placement/main.html | 6 +-- .../component-name-deconflicted/Nested.html | 2 +- .../component-name-deconflicted/main.html | 10 ++-- .../samples/component-nested-deep/Level2.html | 2 +- .../component-nested-deeper/Level1.html | 8 +-- .../component-nested-deeper/Level2.html | 10 ++-- .../component-nested-deeper/Level3.html | 2 +- .../samples/component-nested-deeper/main.html | 2 +- .../samples/component-not-void/Link.html | 2 +- .../component-slot-dynamic/Nested.html | 2 +- .../component-slot-each-block/main.html | 6 +-- .../main.html | 4 +- .../samples/component-slot-if-block/main.html | 4 +- .../main.html | 6 +-- .../component-static-at-symbol/Email.html | 2 +- .../component-yield-follows-element/Foo.html | 2 +- .../samples/component-yield-if/Widget.html | 6 +-- .../samples/component-yield-if/main.html | 2 +- .../Widget.html | 2 +- .../main.html | 6 +-- .../Widget.html | 2 +- .../component-yield-multiple-in-if/main.html | 6 +-- .../component-yield-nested-if/Outer.html | 6 +-- .../component-yield-nested-if/main.html | 2 +- .../component-yield-parent/Widget.html | 2 +- .../samples/component-yield-parent/main.html | 2 +- .../component-yield-placement/Modal.html | 2 +- .../component-yield-placement/main.html | 6 +-- .../component-yield-static/Widget.html | 2 +- .../samples/component-yield-static/main.html | 2 +- .../runtime/samples/component-yield/main.html | 6 +-- .../samples/computed-function/main-v2.html | 20 ------- .../samples/computed-function/main.html | 4 +- .../computed-values-deconflicted/main-v2.html | 14 ----- .../computed-values-deconflicted/main.html | 4 +- .../computed-values-default/main-v2.html | 9 ---- .../samples/computed-values-default/main.html | 4 +- .../main-v2.html | 28 ---------- .../main.html | 6 +-- .../samples/computed-values/main-v2.html | 16 ------ .../runtime/samples/computed-values/main.html | 8 +-- test/runtime/samples/custom-method/main.html | 2 +- .../samples/deconflict-builtins/main.html | 2 +- .../deconflict-component-refs/main.html | 12 ++--- .../samples/deconflict-contexts/main.html | 6 +-- .../deconflict-elements-indexes/main.html | 6 +-- .../samples/deconflict-non-helpers/main.html | 4 +- .../samples/deconflict-template-1/main.html | 2 +- .../samples/deconflict-template-2/main.html | 2 +- .../runtime/samples/deconflict-vars/main.html | 2 +- .../samples/default-data-function/main.html | 2 +- .../samples/default-data-override/main.html | 2 +- test/runtime/samples/default-data/main.html | 2 +- .../main-v2.html | 13 ----- .../main.html | 2 +- .../samples/dev-warning-helper/main.html | 2 +- .../dev-warning-missing-data/main.html | 4 +- .../dev-warning-readonly-computed/main.html | 2 +- .../main-v2.html | 1 - .../main.html | 2 +- .../Green-v2.html | 1 - .../Green.html | 2 +- .../Red-v2.html | 1 - .../Red.html | 2 +- .../main-v2.html | 15 ------ .../main.html | 2 +- .../dynamic-component-bindings/main-v2.html | 12 ----- .../dynamic-component-bindings/main.html | 2 +- .../dynamic-component-events/main-v2.html | 12 ----- .../dynamic-component-events/main.html | 2 +- .../Bar-v2.html | 1 - .../dynamic-component-inside-element/Bar.html | 2 +- .../Foo-v2.html | 1 - .../dynamic-component-inside-element/Foo.html | 2 +- .../main-v2.html | 14 ----- .../main.html | 2 +- .../dynamic-component-ref/main-v2.html | 11 ---- .../samples/dynamic-component-ref/main.html | 2 +- .../dynamic-component-slot/main-v2.html | 45 ---------------- .../samples/dynamic-component-slot/main.html | 20 +++---- .../Bar-v2.html | 1 - .../Bar.html | 2 +- .../Foo-v2.html | 1 - .../Foo.html | 2 +- .../main-v2.html | 12 ----- .../main.html | 2 +- .../samples/dynamic-component/Bar.html | 2 +- .../samples/dynamic-component/Foo.html | 2 +- .../samples/dynamic-component/main.html | 2 +- .../each-block-array-literal/main.html | 6 +-- .../Nested.html | 10 ++-- .../main.html | 2 +- .../each-block-containing-if/main.html | 10 ++-- .../main.html | 4 +- .../each-block-destructured-array/main.html | 6 +-- .../each-block-dynamic-else-static/main.html | 8 +-- .../each-block-else-starts-empty/main.html | 10 ++-- .../runtime/samples/each-block-else/main.html | 10 ++-- .../samples/each-block-indexed/main.html | 6 +-- .../each-block-keyed-dynamic/main.html | 6 +-- .../samples/each-block-keyed-empty/main.html | 2 +- .../each-block-keyed-random-permute/main.html | 6 +-- .../each-block-keyed-siblings/main.html | 12 ++--- .../samples/each-block-keyed-static/main.html | 4 +- .../each-block-keyed-unshift/Nested.html | 2 +- .../each-block-keyed-unshift/main.html | 6 +-- .../samples/each-block-keyed/main-v2.html | 3 -- .../samples/each-block-keyed/main.html | 6 +-- .../each-block-random-permute/main.html | 6 +-- .../samples/each-block-static/main.html | 4 +- .../samples/each-block-text-node/main.html | 6 +-- test/runtime/samples/each-block/main.html | 6 +-- .../samples/each-blocks-expression/main.html | 6 +-- .../samples/each-blocks-nested-b/main.html | 10 ++-- .../samples/each-blocks-nested/main.html | 10 ++-- .../escape-template-literals/Widget.html | 2 +- .../escape-template-literals/main.html | 6 +-- .../event-handler-custom-context/main.html | 2 +- .../main.html | 10 ++-- .../event-handler-custom-each/main.html | 10 ++-- .../main.html | 2 +- .../samples/event-handler-custom/main.html | 2 +- .../event-handler-each-deconflicted/main.html | 10 ++-- .../samples/event-handler-each/main.html | 8 +-- .../samples/event-handler-hoisted/main.html | 4 +- .../samples/event-handler-removal/main.html | 4 +- .../samples/event-handler-sanitize/main.html | 4 +- test/runtime/samples/event-handler/main.html | 4 +- .../samples/flush-before-bindings/Nested.html | 8 +-- .../flush-before-bindings/Visibility.html | 2 +- .../samples/function-in-expression/main.html | 2 +- test/runtime/samples/get-state/main.html | 2 +- .../globals-accessible-directly/main.html | 2 +- .../globals-not-dereferenced/main.html | 2 +- .../main.html | 6 +-- .../globals-shadowed-by-data/main.html | 2 +- .../globals-shadowed-by-helpers/main.html | 2 +- .../samples/head-title-dynamic/main-v2.html | 4 -- .../samples/head-title-dynamic/main.html | 6 +-- .../samples/head-title-static/main-v2.html | 4 -- .../samples/head-title-static/main.html | 4 +- test/runtime/samples/hello-world/main.html | 2 +- .../helpers-not-call-expression/main.html | 2 +- test/runtime/samples/helpers/main.html | 2 +- .../samples/if-block-else-in-each/main.html | 10 ++-- test/runtime/samples/if-block-else/main.html | 12 ++--- .../samples/if-block-elseif-text/main.html | 2 +- .../runtime/samples/if-block-elseif/main.html | 8 +-- .../samples/if-block-expression/main.html | 4 +- test/runtime/samples/if-block-or/main.html | 4 +- .../runtime/samples/if-block-widget/main.html | 4 +- test/runtime/samples/if-block/main.html | 4 +- .../samples/if-in-keyed-each/main.html | 10 ++-- .../main.html | 4 +- .../ignore-unchanged-attribute/main.html | 4 +- .../samples/ignore-unchanged-raw/main.html | 4 +- .../samples/ignore-unchanged-tag/main.html | 4 +- .../samples/immutable-mutable/Nested.html | 2 +- .../samples/immutable-nested/Nested.html | 2 +- test/runtime/samples/immutable-root/main.html | 2 +- .../samples/initial-state-assign/main.html | 4 +- .../samples/inline-expressions/main.html | 2 +- .../names-deconflicted-nested/main.html | 10 ++-- .../samples/names-deconflicted/Widget.html | 2 +- .../samples/names-deconflicted/main.html | 6 +-- .../non-root-style-interpolation/_config.js | 52 ------------------- .../non-root-style-interpolation/main.html | 43 --------------- .../main.html | 4 +- .../main.html | 2 +- .../samples/observe-deferred/main.html | 2 +- .../oncreate-sibling-order/Nested.html | 2 +- .../ondestroy-before-cleanup/main.html | 4 +- test/runtime/samples/onrender-chain/Item.html | 2 +- test/runtime/samples/onrender-chain/List.html | 6 +-- .../ParentWidget.html | 2 +- .../Widget.html | 2 +- .../onrender-fires-when-ready/Widget.html | 2 +- .../onrender-fires-when-ready/main.html | 4 +- test/runtime/samples/onstate-event/main.html | 4 +- test/runtime/samples/onstate/main.html | 4 +- test/runtime/samples/onupdate/main.html | 2 +- .../samples/option-without-select/main.html | 2 +- test/runtime/samples/options/main.html | 2 +- .../paren-wrapped-expressions/main.html | 14 ++--- .../samples/raw-anchor-first-child/main.html | 2 +- .../raw-anchor-first-last-child/main.html | 2 +- .../samples/raw-anchor-last-child/main.html | 2 +- .../main.html | 2 +- .../samples/raw-anchor-next-sibling/main.html | 2 +- .../raw-anchor-previous-sibling/main.html | 2 +- .../samples/raw-mustaches-preserved/main.html | 2 +- test/runtime/samples/raw-mustaches/main.html | 2 +- test/runtime/samples/refs-unset/main.html | 6 +-- .../script-style-non-top-level/main-v2.html | 4 -- .../samples/select-bind-array/main.html | 6 +-- .../samples/select-bind-in-array/main.html | 4 +- .../samples/select-change-handler/main.html | 6 +-- .../select-one-way-bind-object/main.html | 6 +-- .../samples/select-one-way-bind/main.html | 2 +- test/runtime/samples/select-props/main.html | 4 +- test/runtime/samples/select/main.html | 2 +- .../samples/self-reference-tree/main-v2.html | 11 ---- .../samples/self-reference-tree/main.html | 14 ++--- .../samples/self-reference/main-v2.html | 4 -- test/runtime/samples/self-reference/main.html | 8 +-- .../samples/set-after-destroy/main.html | 2 +- .../samples/set-clones-input/main.html | 2 +- .../runtime/samples/set-in-oncreate/main.html | 2 +- .../Widget.html | 2 +- .../set-in-onstate-dedupes-renders/main.html | 2 +- test/runtime/samples/set-in-onstate/main.html | 4 +- .../samples/set-mutated-data/main.html | 2 +- .../samples/set-prevents-loop/main.html | 6 +-- .../sigil-component-attribute/Widget.html | 2 +- .../sigil-component-attribute/main.html | 2 +- .../samples/spread-component-dynamic/Foo.html | 2 +- .../spread-component-dynamic/main.html | 2 +- .../samples/spread-component/Widget.html | 8 +-- .../samples/spread-component/main.html | 2 +- .../samples/spread-element-boolean/main.html | 2 +- .../samples/spread-element-multiple/main.html | 2 +- test/runtime/samples/spread-element/main.html | 2 +- .../samples/state-deconflicted/main.html | 8 +-- test/runtime/samples/store-binding/main.html | 2 +- .../store-component-binding-deep/main.html | 2 +- .../store-component-binding-each/main.html | 6 +-- .../samples/store-component-binding/main.html | 2 +- test/runtime/samples/store-computed/Todo.html | 8 +-- test/runtime/samples/store-computed/main.html | 6 +-- test/runtime/samples/store-event/main.html | 2 +- test/runtime/samples/store-nested/Nested.html | 2 +- .../samples/store-onstate-dollar/main.html | 2 +- test/runtime/samples/store-root/Nested.html | 2 +- test/runtime/samples/store-root/main.html | 2 +- test/runtime/samples/store/main.html | 2 +- .../Rect.html | 2 +- .../main.html | 2 +- .../Rect.html | 2 +- .../main.html | 2 +- .../Rect.html | 2 +- .../main.html | 2 +- .../samples/svg-each-block-anchor/main.html | 8 +-- .../svg-each-block-namespace/main.html | 6 +-- test/runtime/samples/svg-multiple/main.html | 4 +- test/runtime/samples/svg-with-style/main.html | 2 +- test/runtime/samples/svg-xmlns/main.html | 2 +- test/runtime/samples/svg/main.html | 2 +- .../samples/textarea-children/main.html | 2 +- test/runtime/samples/textarea-value/main.html | 2 +- .../samples/transition-css-delay/main.html | 4 +- .../samples/transition-css-duration/main.html | 4 +- .../transition-js-delay-in-out/main.html | 4 +- .../samples/transition-js-delay/main.html | 4 +- .../main.html | 6 +-- .../main.html | 10 ++-- .../transition-js-each-block-intro/main.html | 6 +-- .../main.html | 6 +-- .../main.html | 6 +-- .../main.html | 6 +-- .../transition-js-each-block-outro/main.html | 6 +-- .../samples/transition-js-events/main.html | 10 ++-- .../transition-js-if-block-bidi/main.html | 4 +- .../main.html | 22 ++++---- .../main.html | 22 ++++---- .../main.html | 10 ++-- .../main.html | 4 +- .../transition-js-if-block-intro/main.html | 4 +- .../main.html | 10 ++-- .../main.html | 6 +-- .../main.html | 6 +-- .../main.html | 6 +-- .../transition-js-nested-intro/main.html | 4 +- .../main.html | 4 +- .../transition-js-parameterised/main.html | 4 +- .../samples/whitespace-each-block/main.html | 2 +- .../samples/whitespace-normal/main.html | 6 +-- .../window-bind-scroll-update/main-v2.html | 3 -- .../window-bind-scroll-update/main.html | 2 +- .../window-binding-resize/main-v2.html | 3 -- .../samples/window-binding-resize/main.html | 4 +- .../samples/window-event-context/main-v2.html | 3 -- .../samples/window-event-context/main.html | 4 +- .../samples/window-event-custom/main-v2.html | 25 --------- .../samples/window-event-custom/main.html | 4 +- test/runtime/samples/window-event/main.html | 4 +- 389 files changed, 809 insertions(+), 1261 deletions(-) delete mode 100644 test/runtime/samples/action-update/main-v2.html delete mode 100644 test/runtime/samples/attribute-dynamic-shorthand/main-v2.html delete mode 100644 test/runtime/samples/computed-function/main-v2.html delete mode 100644 test/runtime/samples/computed-values-deconflicted/main-v2.html delete mode 100644 test/runtime/samples/computed-values-default/main-v2.html delete mode 100644 test/runtime/samples/computed-values-function-dependency/main-v2.html delete mode 100644 test/runtime/samples/computed-values/main-v2.html delete mode 100644 test/runtime/samples/dev-warning-dynamic-components-misplaced/main-v2.html delete mode 100644 test/runtime/samples/dev-warning-readonly-window-binding/main-v2.html delete mode 100644 test/runtime/samples/dynamic-component-bindings-recreated/Green-v2.html delete mode 100644 test/runtime/samples/dynamic-component-bindings-recreated/Red-v2.html delete mode 100644 test/runtime/samples/dynamic-component-bindings-recreated/main-v2.html delete mode 100644 test/runtime/samples/dynamic-component-bindings/main-v2.html delete mode 100644 test/runtime/samples/dynamic-component-events/main-v2.html delete mode 100644 test/runtime/samples/dynamic-component-inside-element/Bar-v2.html delete mode 100644 test/runtime/samples/dynamic-component-inside-element/Foo-v2.html delete mode 100644 test/runtime/samples/dynamic-component-inside-element/main-v2.html delete mode 100644 test/runtime/samples/dynamic-component-ref/main-v2.html delete mode 100644 test/runtime/samples/dynamic-component-slot/main-v2.html delete mode 100644 test/runtime/samples/dynamic-component-update-existing-instance/Bar-v2.html delete mode 100644 test/runtime/samples/dynamic-component-update-existing-instance/Foo-v2.html delete mode 100644 test/runtime/samples/dynamic-component-update-existing-instance/main-v2.html delete mode 100644 test/runtime/samples/each-block-keyed/main-v2.html delete mode 100644 test/runtime/samples/head-title-dynamic/main-v2.html delete mode 100644 test/runtime/samples/head-title-static/main-v2.html delete mode 100644 test/runtime/samples/non-root-style-interpolation/_config.js delete mode 100644 test/runtime/samples/non-root-style-interpolation/main.html delete mode 100644 test/runtime/samples/script-style-non-top-level/main-v2.html delete mode 100644 test/runtime/samples/self-reference-tree/main-v2.html delete mode 100644 test/runtime/samples/self-reference/main-v2.html delete mode 100644 test/runtime/samples/window-bind-scroll-update/main-v2.html delete mode 100644 test/runtime/samples/window-binding-resize/main-v2.html delete mode 100644 test/runtime/samples/window-event-context/main-v2.html delete mode 100644 test/runtime/samples/window-event-custom/main-v2.html diff --git a/test/runtime/index.js b/test/runtime/index.js index 96d7ad6445..913fddacf2 100644 --- a/test/runtime/index.js +++ b/test/runtime/index.js @@ -21,11 +21,11 @@ let compileOptions = null; let compile = null; function getName(filename) { - const base = path.basename(filename).replace('-v2', '').replace(".html", ""); + const base = path.basename(filename).replace(".html", ""); return base[0].toUpperCase() + base.slice(1); } -describe("runtime", () => { +describe.only("runtime", () => { before(() => { svelte = loadSvelte(false); svelte$ = loadSvelte(true); @@ -46,7 +46,7 @@ describe("runtime", () => { const failed = new Set(); - function runTest(dir, shared, hydrate, v2) { + function runTest(dir, shared, hydrate) { if (dir[0] === ".") return; const config = loadConfig(`./runtime/samples/${dir}/_config.js`); @@ -55,7 +55,7 @@ describe("runtime", () => { throw new Error("Forgot to remove `solo: true` from test"); } - (config.skip ? it.skip : config.solo ? it.only : it)(`${dir} (${shared ? 'shared' : 'inline'} helpers${hydrate ? ', hydration' : ''}${v2 ? ', v2' : ''})`, () => { + (config.skip ? it.skip : config.solo ? it.only : it)(`${dir} (${shared ? 'shared' : 'inline'} helpers${hydrate ? ', hydration' : ''})`, () => { if (failed.has(dir)) { // this makes debugging easier, by only printing compiled output once throw new Error('skipping test, already failed'); @@ -72,7 +72,7 @@ describe("runtime", () => { compileOptions.dev = config.dev; compileOptions.store = !!config.store; compileOptions.immutable = config.immutable; - compileOptions.parser = v2 ? 'v2' : 'v1'; + compileOptions.parser = 'v2'; // TODO remove Object.keys(require.cache) .filter(x => x.endsWith(".html")) @@ -112,7 +112,7 @@ describe("runtime", () => { }; try { - SvelteComponent = require(`./samples/${dir}/main${v2 ? '-v2' : ''}.html`); + SvelteComponent = require(`./samples/${dir}/main.html`); } catch (err) { showOutput(cwd, { shared, format: 'cjs', hydratable: hydrate, store: !!compileOptions.store }, compile); // eslint-disable-line no-console throw err; @@ -172,12 +172,12 @@ describe("runtime", () => { config.error(assert, err); } else { failed.add(dir); - showOutput(cwd, { shared, format: 'cjs', hydratable: hydrate, store: !!compileOptions.store, v2 }, compile); // eslint-disable-line no-console + showOutput(cwd, { shared, format: 'cjs', hydratable: hydrate, store: !!compileOptions.store, v2: true }, compile); // eslint-disable-line no-console throw err; } }) .then(() => { - if (config.show) showOutput(cwd, { shared, format: 'cjs', hydratable: hydrate, store: !!compileOptions.store, v2 }, compile); + if (config.show) showOutput(cwd, { shared, format: 'cjs', hydratable: hydrate, store: !!compileOptions.store, v2: true }, compile); }); }); } @@ -187,10 +187,6 @@ describe("runtime", () => { runTest(dir, shared, false); runTest(dir, shared, true); runTest(dir, null, false); - - if (fs.existsSync(`test/runtime/samples/${dir}/main-v2.html`)) { - runTest(dir, shared, false, true); - } }); it("fails if options.target is missing in dev mode", () => { diff --git a/test/runtime/samples/action-this/main.html b/test/runtime/samples/action-this/main.html index 95da3d4a8c..6eb12e1206 100644 --- a/test/runtime/samples/action-this/main.html +++ b/test/runtime/samples/action-this/main.html @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/test/runtime/samples/action-update/main.html b/test/runtime/samples/action-update/main.html index 03bd0d0ef9..6b319f5dca 100644 --- a/test/runtime/samples/action-update/main.html +++ b/test/runtime/samples/action-update/main.html @@ -1,5 +1,5 @@ -<:Window on:keydown="checkForCtrl(event)" on:keyup="checkForCtrl(event)"/> + diff --git a/test/runtime/samples/attribute-dynamic-shorthand/main.html b/test/runtime/samples/attribute-dynamic-shorthand/main.html index 25b468a8f1..9bbc477272 100644 --- a/test/runtime/samples/attribute-dynamic-shorthand/main.html +++ b/test/runtime/samples/attribute-dynamic-shorthand/main.html @@ -1,4 +1,4 @@ -
+
\ No newline at end of file diff --git a/test/runtime/samples/binding-indirect/main.html b/test/runtime/samples/binding-indirect/main.html index e1ab12c82f..df37840b43 100644 --- a/test/runtime/samples/binding-indirect/main.html +++ b/test/runtime/samples/binding-indirect/main.html @@ -1,14 +1,14 @@

Pending tasks

-{{#each tasks.filter(t => !t.done) as task}} -

{{task.description}}

-{{/each}} \ No newline at end of file +{#each tasks.filter(t => !t.done) as task} +

{task.description}

+{/each} \ No newline at end of file diff --git a/test/runtime/samples/binding-input-checkbox-deep-contextual/main.html b/test/runtime/samples/binding-input-checkbox-deep-contextual/main.html index dc385a4990..209cdbeaf7 100644 --- a/test/runtime/samples/binding-input-checkbox-deep-contextual/main.html +++ b/test/runtime/samples/binding-input-checkbox-deep-contextual/main.html @@ -1,13 +1,13 @@ -{{#each items as item}} -

{{item.description}}

-{{/each}} +{#each items as item} +

{item.description}

+{/each} -

{{numCompleted}} completed

+

{numCompleted} completed

diff --git a/test/runtime/samples/computed-function/main.html b/test/runtime/samples/computed-function/main.html index f3fc14727d..a432252166 100644 --- a/test/runtime/samples/computed-function/main.html +++ b/test/runtime/samples/computed-function/main.html @@ -1,4 +1,4 @@ -

{{scale(x)}}

+

{scale(x)}

\ No newline at end of file diff --git a/test/runtime/samples/computed-values-deconflicted/main.html b/test/runtime/samples/computed-values-deconflicted/main.html index d32fde6167..e5a016084c 100644 --- a/test/runtime/samples/computed-values-deconflicted/main.html +++ b/test/runtime/samples/computed-values-deconflicted/main.html @@ -1,4 +1,4 @@ -{{state}} +{state} \ No newline at end of file diff --git a/test/runtime/samples/computed-values-default/main-v2.html b/test/runtime/samples/computed-values-default/main-v2.html deleted file mode 100644 index b26762f3d8..0000000000 --- a/test/runtime/samples/computed-values-default/main-v2.html +++ /dev/null @@ -1,9 +0,0 @@ -

{foo}

- - diff --git a/test/runtime/samples/computed-values-default/main.html b/test/runtime/samples/computed-values-default/main.html index 74292a3a2e..b26762f3d8 100644 --- a/test/runtime/samples/computed-values-default/main.html +++ b/test/runtime/samples/computed-values-default/main.html @@ -1,9 +1,9 @@ -

{{foo}}

+

{foo}

diff --git a/test/runtime/samples/computed-values-function-dependency/main-v2.html b/test/runtime/samples/computed-values-function-dependency/main-v2.html deleted file mode 100644 index adf66137fa..0000000000 --- a/test/runtime/samples/computed-values-function-dependency/main-v2.html +++ /dev/null @@ -1,28 +0,0 @@ -

{x}

- - \ No newline at end of file diff --git a/test/runtime/samples/computed-values-function-dependency/main.html b/test/runtime/samples/computed-values-function-dependency/main.html index d385bf6da8..adf66137fa 100644 --- a/test/runtime/samples/computed-values-function-dependency/main.html +++ b/test/runtime/samples/computed-values-function-dependency/main.html @@ -1,4 +1,4 @@ -

{{x}}

+

{x}

diff --git a/test/runtime/samples/computed-values/main.html b/test/runtime/samples/computed-values/main.html index 0cee54f867..7e4f8d7728 100644 --- a/test/runtime/samples/computed-values/main.html +++ b/test/runtime/samples/computed-values/main.html @@ -1,5 +1,5 @@ -

{{a}} + {{b}} = {{c}}

-

{{c}} * {{c}} = {{cSquared}}

+

{a} + {b} = {c}

+

{c} * {c} = {cSquared}

diff --git a/test/runtime/samples/custom-method/main.html b/test/runtime/samples/custom-method/main.html index 3bd8459fb1..0f1ad3387c 100644 --- a/test/runtime/samples/custom-method/main.html +++ b/test/runtime/samples/custom-method/main.html @@ -1,6 +1,6 @@ -

{{counter}}

+

{counter}

diff --git a/test/runtime/samples/deconflict-template-1/main.html b/test/runtime/samples/deconflict-template-1/main.html index f4fe8de423..395d7b22b3 100644 --- a/test/runtime/samples/deconflict-template-1/main.html +++ b/test/runtime/samples/deconflict-template-1/main.html @@ -1,4 +1,4 @@ -{{value}} +{value} \ No newline at end of file diff --git a/test/runtime/samples/dev-warning-dynamic-components-misplaced/main.html b/test/runtime/samples/dev-warning-dynamic-components-misplaced/main.html index 37392f27e6..eb6e7d8e8e 100644 --- a/test/runtime/samples/dev-warning-dynamic-components-misplaced/main.html +++ b/test/runtime/samples/dev-warning-dynamic-components-misplaced/main.html @@ -1,4 +1,4 @@ -<:Component {x ? Foo : Bar}/> + \ No newline at end of file diff --git a/test/runtime/samples/dev-warning-readonly-window-binding/main-v2.html b/test/runtime/samples/dev-warning-readonly-window-binding/main-v2.html deleted file mode 100644 index 87b0403ee3..0000000000 --- a/test/runtime/samples/dev-warning-readonly-window-binding/main-v2.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/dev-warning-readonly-window-binding/main.html b/test/runtime/samples/dev-warning-readonly-window-binding/main.html index 635ae75e9c..87b0403ee3 100644 --- a/test/runtime/samples/dev-warning-readonly-window-binding/main.html +++ b/test/runtime/samples/dev-warning-readonly-window-binding/main.html @@ -1 +1 @@ -<:Window bind:innerWidth='width'/> \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated/Green-v2.html b/test/runtime/samples/dynamic-component-bindings-recreated/Green-v2.html deleted file mode 100644 index b4faa1b662..0000000000 --- a/test/runtime/samples/dynamic-component-bindings-recreated/Green-v2.html +++ /dev/null @@ -1 +0,0 @@ -

green {foo}

\ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated/Green.html b/test/runtime/samples/dynamic-component-bindings-recreated/Green.html index 692847c1c2..b4faa1b662 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated/Green.html +++ b/test/runtime/samples/dynamic-component-bindings-recreated/Green.html @@ -1 +1 @@ -

green {{foo}}

\ No newline at end of file +

green {foo}

\ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated/Red-v2.html b/test/runtime/samples/dynamic-component-bindings-recreated/Red-v2.html deleted file mode 100644 index a3e3c792a0..0000000000 --- a/test/runtime/samples/dynamic-component-bindings-recreated/Red-v2.html +++ /dev/null @@ -1 +0,0 @@ -

red {foo}

\ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated/Red.html b/test/runtime/samples/dynamic-component-bindings-recreated/Red.html index 8f10e3294d..a3e3c792a0 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated/Red.html +++ b/test/runtime/samples/dynamic-component-bindings-recreated/Red.html @@ -1 +1 @@ -

red {{foo}}

\ No newline at end of file +

red {foo}

\ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated/main-v2.html b/test/runtime/samples/dynamic-component-bindings-recreated/main-v2.html deleted file mode 100644 index 6d748ed217..0000000000 --- a/test/runtime/samples/dynamic-component-bindings-recreated/main-v2.html +++ /dev/null @@ -1,15 +0,0 @@ - - - \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated/main.html b/test/runtime/samples/dynamic-component-bindings-recreated/main.html index b9cdf92660..a26c1cd080 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated/main.html +++ b/test/runtime/samples/dynamic-component-bindings-recreated/main.html @@ -1,4 +1,4 @@ -<:Component {x ? Green : Red} bind:foo /> + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings/main.html b/test/runtime/samples/dynamic-component-bindings/main.html index cb260da71f..020855cb22 100644 --- a/test/runtime/samples/dynamic-component-bindings/main.html +++ b/test/runtime/samples/dynamic-component-bindings/main.html @@ -1,4 +1,4 @@ -<:Component { x ? Foo : Bar } bind:y bind:z/> + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-events/main.html b/test/runtime/samples/dynamic-component-events/main.html index 8606b56ce0..5fa66b2c61 100644 --- a/test/runtime/samples/dynamic-component-events/main.html +++ b/test/runtime/samples/dynamic-component-events/main.html @@ -1,4 +1,4 @@ -<:Component { x ? Foo : Bar } on:select='set({ selected: event.id })'/> + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-inside-element/main.html b/test/runtime/samples/dynamic-component-inside-element/main.html index 2f2eb26587..0844346301 100644 --- a/test/runtime/samples/dynamic-component-inside-element/main.html +++ b/test/runtime/samples/dynamic-component-inside-element/main.html @@ -1,5 +1,5 @@
- <:Component { x ? Foo : Bar } x='{{x}}'/> +
diff --git a/test/runtime/samples/dynamic-component-ref/main.html b/test/runtime/samples/dynamic-component-ref/main.html index ff506517bc..1d54b17299 100644 --- a/test/runtime/samples/dynamic-component-ref/main.html +++ b/test/runtime/samples/dynamic-component-ref/main.html @@ -1,4 +1,4 @@ -<:Component {foo} ref:test/> + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-slot/main.html b/test/runtime/samples/dynamic-component-slot/main.html index fd4fad1369..e8b5c487ad 100644 --- a/test/runtime/samples/dynamic-component-slot/main.html +++ b/test/runtime/samples/dynamic-component-slot/main.html @@ -1,26 +1,26 @@ -<:Component { x ? Foo : Bar } x='{{x}}'> +

element

- {{tag}} + {tag} - {{#if foo}} + {#if foo}

foo

- {{elseif bar}} + {:elseif bar}

bar

- {{else}} + {:else}

neither foo nor bar

- {{/if}} + {/if} text - {{#each things as thing}} - {{thing}} - {{/each}} + {#each things as thing} + {thing} + {/each}
what goes up must come down
- +
\ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-update-existing-instance/main.html b/test/runtime/samples/dynamic-component-update-existing-instance/main.html index 127c189cc3..1f8bd35f8c 100644 --- a/test/runtime/samples/dynamic-component-update-existing-instance/main.html +++ b/test/runtime/samples/dynamic-component-update-existing-instance/main.html @@ -1,4 +1,4 @@ -<:Component { x ? Foo : Bar } x='{{x}}'/> + diff --git a/test/runtime/samples/globals-accessible-directly/main.html b/test/runtime/samples/globals-accessible-directly/main.html index 349b4b1d32..77225fa117 100644 --- a/test/runtime/samples/globals-accessible-directly/main.html +++ b/test/runtime/samples/globals-accessible-directly/main.html @@ -1 +1 @@ -{{NaN}} +{NaN} diff --git a/test/runtime/samples/globals-not-dereferenced/main.html b/test/runtime/samples/globals-not-dereferenced/main.html index 771042ed07..ec39251992 100644 --- a/test/runtime/samples/globals-not-dereferenced/main.html +++ b/test/runtime/samples/globals-not-dereferenced/main.html @@ -1 +1 @@ -{{Math.min(x, 5)}} +{Math.min(x, 5)} diff --git a/test/runtime/samples/globals-not-overwritten-by-bindings/main.html b/test/runtime/samples/globals-not-overwritten-by-bindings/main.html index ca6c6ccb35..a8b873211c 100644 --- a/test/runtime/samples/globals-not-overwritten-by-bindings/main.html +++ b/test/runtime/samples/globals-not-overwritten-by-bindings/main.html @@ -1,6 +1,6 @@ -{{#each Object.keys(todos) as key}} -
+{#each Object.keys(todos) as key} +
-{{/each}} \ No newline at end of file +{/each} \ No newline at end of file diff --git a/test/runtime/samples/globals-shadowed-by-data/main.html b/test/runtime/samples/globals-shadowed-by-data/main.html index 73fd9437af..7e3b408331 100644 --- a/test/runtime/samples/globals-shadowed-by-data/main.html +++ b/test/runtime/samples/globals-shadowed-by-data/main.html @@ -1,4 +1,4 @@ -{{Math.min(x, 5)}} +{Math.min(x, 5)} -
\ No newline at end of file diff --git a/test/runtime/samples/select-bind-array/main.html b/test/runtime/samples/select-bind-array/main.html index 7971c4fe10..67c1dfdb91 100644 --- a/test/runtime/samples/select-bind-array/main.html +++ b/test/runtime/samples/select-bind-array/main.html @@ -1,5 +1,5 @@ diff --git a/test/runtime/samples/select-bind-in-array/main.html b/test/runtime/samples/select-bind-in-array/main.html index 1a80b1afa0..9a4d1e82cd 100644 --- a/test/runtime/samples/select-bind-in-array/main.html +++ b/test/runtime/samples/select-bind-in-array/main.html @@ -1,6 +1,6 @@ -{{#each items as item}} +{#each items as item} -{{/each}} +{/each} diff --git a/test/runtime/samples/select-change-handler/main.html b/test/runtime/samples/select-change-handler/main.html index 48376dfa93..13d9bd75af 100644 --- a/test/runtime/samples/select-change-handler/main.html +++ b/test/runtime/samples/select-change-handler/main.html @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/test/runtime/samples/set-in-oncreate/main.html b/test/runtime/samples/set-in-oncreate/main.html index 8e71ec5905..77633574f1 100644 --- a/test/runtime/samples/set-in-oncreate/main.html +++ b/test/runtime/samples/set-in-oncreate/main.html @@ -1,4 +1,4 @@ -

{{foo}}

+

{foo}

\ No newline at end of file diff --git a/test/runtime/samples/window-event-custom/main.html b/test/runtime/samples/window-event-custom/main.html index af33d08d97..515d5bc4ca 100644 --- a/test/runtime/samples/window-event-custom/main.html +++ b/test/runtime/samples/window-event-custom/main.html @@ -1,6 +1,6 @@ -<:Window on:esc="set({ escaped: true })" /> + -

escaped: {{escaped}}

+

escaped: {escaped}