From 7f3cd0d655d82f541037ae9028d7ee103465c717 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 4 Nov 2018 21:04:04 -0500 Subject: [PATCH] update css tests update custom-elements tests update hydration tests update js tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests update some tests --- .../input.html | 16 ++-- .../samples/custom-method/main.html | 18 ++-- .../samples/escaped-css/main.html | 10 +-- .../samples/html-slots/main.html | 10 +-- test/custom-elements/samples/html/main.html | 10 +-- .../samples/nested/Counter.html | 14 +-- test/custom-elements/samples/nested/main.html | 12 ++- .../samples/new-styled/main.html | 10 +-- test/custom-elements/samples/new/main.html | 10 +-- .../no-missing-prop-warnings/main.html | 13 +-- .../samples/oncreate/main.html | 19 ++-- test/custom-elements/samples/props/main.html | 14 +-- .../samples/props/my-widget.html | 16 ++-- .../samples/component-in-element/main.html | 14 +-- test/hydration/samples/component/main.html | 10 +-- .../samples/each-block-arg-clash/main.html | 2 +- .../hydration/samples/event-handler/main.html | 2 +- test/js/samples/action/input.html | 28 +++--- .../collapses-text-around-comments/input.html | 11 +-- .../samples/component-static-array/input.html | 12 +-- .../component-static-immutable/input.html | 13 ++- .../component-static-immutable2/input.html | 12 +-- test/js/samples/component-static/input.html | 12 +-- .../samples/computed-collapsed-if/input.html | 15 ++-- .../css-shadow-dom-keyframes/input.html | 10 +-- test/js/samples/deconflict-globals/input.html | 14 ++- .../input.html | 20 ++--- test/js/samples/do-use-dataset/input.html | 2 +- .../dont-use-dataset-in-legacy/input.html | 2 +- .../dont-use-dataset-in-svg/input.html | 2 +- test/js/samples/dynamic-import/input.html | 10 +-- .../each-block-keyed-animated/input.html | 38 ++++---- .../samples/event-handlers-custom/input.html | 27 +++--- test/js/samples/event-modifiers/input.html | 30 +++---- test/js/samples/media-bindings/input.html | 2 +- .../samples/non-imported-component/input.html | 13 +-- test/js/samples/setup-method/input.html | 25 ++---- .../js/samples/ssr-no-oncreate-etc/input.html | 40 ++++----- .../samples/ssr-preserve-comments/input.html | 2 +- .../runtime/samples/action-function/main.html | 54 +++++------ .../samples/action-ternary-template/main.html | 29 +++--- test/runtime/samples/action-this/main.html | 32 ++++--- test/runtime/samples/action-update/main.html | 76 +++++++--------- test/runtime/samples/action/main.html | 50 +++++------ test/runtime/samples/animation-css/main.html | 32 ++++--- .../samples/animation-js-delay/main.html | 38 ++++---- test/runtime/samples/animation-js/main.html | 36 ++++---- .../samples/attribute-boolean-false/main.html | 2 +- .../samples/attribute-boolean-true/main.html | 2 +- .../samples/attribute-casing/main.html | 2 +- .../attribute-dynamic-multiple/main.html | 2 +- .../main.html | 2 +- .../attribute-dynamic-quotemarks/main.html | 2 +- .../attribute-dynamic-reserved/main.html | 2 +- .../attribute-dynamic-shorthand/main.html | 10 +-- .../samples/attribute-dynamic/main.html | 10 +-- .../samples/attribute-empty-svg/main.html | 2 +- .../runtime/samples/attribute-empty/main.html | 2 +- .../attribute-partial-number/main.html | 10 +-- .../attribute-prefer-expression/main.html | 2 +- .../attribute-static-boolean/main.html | 2 +- .../samples/attribute-static/main.html | 2 +- .../await-component-oncreate/main.html | 16 ++-- .../samples/await-then-catch-anchor/main.html | 2 +- .../samples/await-then-catch-event/main.html | 2 +- .../samples/await-then-catch-if/main.html | 2 +- .../await-then-catch-in-slot/main.html | 16 ++-- .../await-then-catch-no-values/main.html | 2 +- .../main.html | 2 +- .../binding-indirect-computed/main.html | 37 ++++---- .../main.html | 20 ++--- .../main.html | 2 +- .../main.html | 23 +++-- .../samples/binding-input-checkbox/main.html | 2 +- .../samples/binding-input-number/main.html | 2 +- .../binding-input-range-change/main.html | 2 +- .../samples/binding-input-range/main.html | 2 +- .../binding-input-text-contextual/main.html | 2 +- .../main.html | 2 +- .../main.html | 2 +- .../samples/binding-input-text-deep/main.html | 2 +- .../samples/binding-input-text/main.html | 2 +- .../binding-input-with-event/main.html | 2 +- .../binding-select-in-yield/Modal.html | 27 ++---- .../samples/binding-select-in-yield/main.html | 24 ++--- .../samples/binding-select-late/main.html | 2 +- .../samples/binding-select-multiple/main.html | 2 +- test/runtime/samples/binding-select/main.html | 2 +- .../samples/binding-textarea/main.html | 2 +- .../samples/bindings-before-oncreate/One.html | 20 ++--- .../samples/bindings-before-oncreate/Two.html | 16 +--- .../bindings-before-oncreate/main.html | 8 +- .../samples/bindings-coalesced/Foo.html | 28 +++--- .../samples/bindings-coalesced/main.html | 15 ++-- test/runtime/samples/class-boolean/main.html | 2 +- test/runtime/samples/class-helper/main.html | 14 ++- test/runtime/samples/class-in-each/main.html | 2 +- .../class-shortcut-with-class/main.html | 2 +- test/runtime/samples/class-shortcut/main.html | 2 +- .../samples/class-with-attribute/main.html | 2 +- .../class-with-dynamic-attribute/main.html | 2 +- .../component-binding-blowback-b/Nested.html | 20 +++-- .../component-binding-blowback-b/main.html | 39 +++----- .../component-binding-blowback-c/Nested.html | 20 +++-- .../component-binding-blowback-c/main.html | 41 ++++----- .../component-binding-blowback/main.html | 24 ++--- .../component-binding-computed/main.html | 27 ++---- .../component-binding-conditional-b/Bar.html | 10 +-- .../component-binding-conditional-b/Baz.html | 8 +- .../component-binding-conditional-b/Foo.html | 10 +-- .../component-binding-conditional-b/main.html | 25 +++--- .../component-binding-conditional/Bar.html | 10 +-- .../component-binding-conditional/Baz.html | 8 +- .../component-binding-conditional/Foo.html | 10 +-- .../component-binding-conditional/main.html | 25 +++--- .../component-binding-deep-b/main.html | 61 ++++++------- .../samples/component-binding-deep/main.html | 22 ++--- .../component-binding-each-nested/main.html | 26 ++---- .../component-binding-each-object/main.html | 14 ++- .../samples/component-binding-each/main.html | 24 ++--- .../component-binding-infinite-loop/A.html | 14 ++- .../component-binding-infinite-loop/B.html | 22 ++--- .../component-binding-infinite-loop/C.html | 34 ++++--- .../component-binding-infinite-loop/main.html | 21 ++--- .../Counter.html | 21 ++--- .../main.html | 12 +-- .../samples/component-binding-nested/Bar.html | 14 ++- .../samples/component-binding-nested/Baz.html | 4 +- .../samples/component-binding-nested/Foo.html | 14 ++- .../component-binding-nested/main.html | 12 ++- .../Counter.html | 10 +-- .../main.html | 16 +--- .../Nested.html | 2 +- .../main.html | 18 ++-- .../samples/component-binding/Counter.html | 10 +-- .../samples/component-binding/main.html | 12 +-- .../component-data-dynamic-late/Widget.html | 2 +- .../component-data-dynamic-late/main.html | 19 ++-- .../main.html | 12 ++- .../component-data-dynamic/Widget.html | 2 +- .../samples/component-data-dynamic/main.html | 15 ++-- .../samples/component-data-empty/Widget.html | 2 +- .../samples/component-data-empty/main.html | 12 +-- .../main.html | 11 +-- .../component-data-static-boolean/Foo.html | 2 +- .../component-data-static-boolean/main.html | 8 +- .../samples/component-data-static/Widget.html | 2 +- .../samples/component-data-static/main.html | 12 +-- .../component-event-not-stale/main.html | 23 ++--- .../component-events-console/main.html | 8 +- .../samples/component-events-data/Widget.html | 12 ++- .../samples/component-events-data/main.html | 13 ++- .../samples/component-events-each/Widget.html | 8 +- .../samples/component-events-each/main.html | 24 +++-- .../component-events-fire-finally/main.html | 2 +- .../samples/component-events/Widget.html | 2 +- .../samples/component-events/main.html | 19 ++-- .../component-if-placement/Component.html | 2 +- .../samples/component-if-placement/main.html | 14 ++- .../component-invalid-identifier/Widget.html | 15 ++-- .../component-invalid-identifier/main.html | 12 +-- .../component-name-deconflicted/main.html | 21 ++--- .../samples/component-nested-deep/Level1.html | 17 ++-- .../samples/component-nested-deep/Level2.html | 14 +-- .../samples/component-nested-deep/main.html | 12 +-- .../component-nested-deeper/Level1.html | 21 ++--- .../samples/component-nested-deeper/main.html | 12 +-- .../samples/component-not-void/Link.html | 2 +- .../samples/component-not-void/main.html | 10 +-- .../runtime/samples/component-ref/Widget.html | 16 ++-- test/runtime/samples/component-ref/main.html | 12 +-- .../component-shorthand-import/Widget.html | 2 +- .../component-shorthand-import/main.html | 6 +- .../samples/component-slot-default/main.html | 14 +-- .../component-slot-dynamic/Nested.html | 16 ++-- .../samples/component-slot-dynamic/main.html | 14 +-- .../component-slot-each-block/main.html | 16 ++-- .../samples/component-slot-empty/main.html | 12 +-- .../samples/component-slot-fallback/main.html | 14 +-- .../main.html | 18 ++-- .../samples/component-slot-if-block/main.html | 18 ++-- .../main.html | 18 ++-- .../component-slot-name-with-hyphen/main.html | 14 +-- .../samples/component-slot-named/main.html | 16 ++-- .../component-slot-nested-component/main.html | 12 +-- .../samples/component-slot-nested/main.html | 14 +-- .../component-static-at-symbol/Email.html | 2 +- .../component-static-at-symbol/main.html | 8 +- .../component-yield-follows-element/main.html | 10 +-- .../samples/component-yield-if/Widget.html | 16 ++-- .../samples/component-yield-if/main.html | 18 ++-- .../Widget.html | 2 +- .../main.html | 20 ++--- .../Widget.html | 2 +- .../component-yield-multiple-in-if/main.html | 24 ++--- .../component-yield-nested-if/Inner.html | 2 +- .../component-yield-nested-if/Outer.html | 2 +- .../component-yield-nested-if/main.html | 15 ++-- .../component-yield-parent/Widget.html | 2 +- .../samples/component-yield-parent/main.html | 16 ++-- .../component-yield-placement/Modal.html | 4 +- .../component-yield-placement/main.html | 20 ++--- .../component-yield-static/Widget.html | 2 +- .../samples/component-yield-static/main.html | 11 +-- .../runtime/samples/component-yield/main.html | 16 ++-- test/runtime/samples/component/Widget.html | 2 +- test/runtime/samples/component/main.html | 12 +-- test/runtime/samples/computed-empty/main.html | 17 ++-- .../samples/computed-function/main.html | 26 +++--- .../samples/computed-state-object/_config.js | 21 ----- .../samples/computed-state-object/main.html | 14 --- .../computed-values-deconflicted/main.html | 21 ++--- .../main.html | 30 +++---- .../runtime/samples/computed-values/main.html | 25 +++--- .../samples/computed-whole-state/_config.js | 25 ------ .../samples/computed-whole-state/main.html | 22 ----- test/runtime/samples/css-comments/main.html | 2 +- test/runtime/samples/css-false/Widget.html | 2 +- test/runtime/samples/css-false/main.html | 10 +-- .../css-space-in-attribute/Widget.html | 2 +- .../samples/css-space-in-attribute/main.html | 10 +-- test/runtime/samples/css/Widget.html | 2 +- test/runtime/samples/css/main.html | 10 +-- test/runtime/samples/custom-method/main.html | 28 +++--- .../samples/deconflict-builtins/main.html | 14 +-- .../deconflict-elements-indexes/main.html | 29 +++--- .../samples/deconflict-non-helpers/main.html | 19 ++-- .../runtime/samples/deconflict-self/main.html | 8 +- .../samples/deconflict-template-1/main.html | 12 +-- .../samples/deconflict-template-2/main.html | 12 +-- .../runtime/samples/deconflict-vars/main.html | 12 +-- .../samples/default-data-function/main.html | 10 +-- .../samples/default-data-override/main.html | 10 +-- test/runtime/samples/default-data/main.html | 10 +-- test/runtime/samples/destructuring/main.html | 8 +- .../dev-accept-declarative-store/main.html | 15 ++-- .../dev-warning-bad-set-argument/_config.js | 9 -- .../dev-warning-bad-set-argument/main.html | 11 --- .../main.html | 15 ++-- .../samples/dev-warning-helper/main.html | 18 ++-- .../main.html | 2 +- .../dev-warning-readonly-computed/main.html | 10 +-- test/runtime/samples/document-event/main.html | 19 ++-- .../Green.html | 14 +-- .../Red.html | 14 +-- .../main.html | 18 ++-- .../main.html | 16 ++-- .../dynamic-component-bindings/main.html | 14 ++- .../samples/dynamic-component-events/Bar.html | 8 +- .../samples/dynamic-component-events/Foo.html | 8 +- .../dynamic-component-events/main.html | 13 ++- .../samples/dynamic-component-in-if/main.html | 20 ++--- .../main.html | 16 ++-- .../dynamic-component-nulled-out/main.html | 10 +-- .../samples/dynamic-component-ref/main.html | 12 ++- .../samples/dynamic-component-slot/main.html | 36 +++----- .../main.html | 12 +-- .../samples/dynamic-component/main.html | 12 +-- .../each-block-array-literal/main.html | 14 ++- .../main.html | 17 ++-- .../each-block-containing-if/main.html | 36 ++++---- .../each-block-else-mount-or-intro/main.html | 10 ++- .../samples/each-block-empty-outro/main.html | 17 ++-- .../each-block-keyed-unshift/main.html | 16 ++-- .../samples/element-source-location/main.html | 14 ++- .../escape-template-literals/main.html | 9 +- .../event-handler-console-log/main.html | 2 +- .../event-handler-custom-context/main.html | 36 +++----- .../main.html | 52 +++++------ .../event-handler-custom-each/main.html | 50 +++++------ .../main.html | 32 +++---- .../event-handler-custom-this/main.html | 34 ++++--- .../samples/event-handler-custom/main.html | 40 ++++----- .../samples/event-handler-destroy/_config.js | 20 ----- .../samples/event-handler-destroy/main.html | 1 - .../event-handler-each-context/main.html | 2 +- .../event-handler-each-deconflicted/main.html | 4 +- .../samples/event-handler-each-this/main.html | 8 +- .../samples/event-handler-each/main.html | 2 +- .../event-handler-event-methods/main.html | 22 ++--- .../samples/event-handler-hoisted/main.html | 25 +++--- .../samples/event-handler-removal/main.html | 16 ++-- .../samples/event-handler-sanitize/main.html | 2 +- .../Widget.html | 8 +- .../main.html | 10 +-- .../Widget.html | 8 +- .../main.html | 8 +- .../event-handler-shorthand/_config.js | 13 --- .../samples/event-handler-shorthand/main.html | 11 --- .../event-handler-this-methods/main.html | 2 +- test/runtime/samples/event-handler/main.html | 2 +- .../samples/flush-before-bindings/Nested.html | 36 +++----- .../flush-before-bindings/Visibility.html | 18 ++-- .../samples/flush-before-bindings/main.html | 34 +++---- test/runtime/samples/get-state/main.html | 14 ++- .../globals-shadowed-by-data/main.html | 17 ++-- .../globals-shadowed-by-helpers/main.html | 16 ++-- .../helpers-not-call-expression/main.html | 16 +--- test/runtime/samples/helpers/main.html | 20 ++--- .../main.html | 16 ++-- .../if-block-else-partial-outro/main.html | 24 ++--- .../main.html | 23 ++--- .../if-block-outro-nested-else/main.html | 15 ++-- .../main.html | 15 ++-- .../runtime/samples/if-block-widget/main.html | 15 ++-- .../main.html | 21 +++-- .../ignore-unchanged-attribute/main.html | 21 +++-- .../samples/ignore-unchanged-raw/main.html | 21 +++-- .../samples/ignore-unchanged-tag/main.html | 21 +++-- .../samples/immutable-mutable/Nested.html | 17 ++-- .../samples/immutable-mutable/main.html | 16 ++-- .../samples/immutable-nested/Nested.html | 16 ++-- .../samples/immutable-nested/main.html | 16 ++-- test/runtime/samples/immutable-root/main.html | 18 ++-- .../imported-renamed-components/main.html | 9 +- .../samples/initial-state-assign/main.html | 13 ++- .../samples/lifecycle-events/main.html | 26 +++--- .../samples/names-deconflicted/main.html | 26 ++---- .../nested-transition-detach-each/main.html | 28 +++--- .../Folder.html | 53 +++++------ .../main.html | 14 ++- .../main.html | 18 ++-- test/runtime/samples/object-rest/_config.js | 27 ------ test/runtime/samples/object-rest/main.html | 18 ---- .../main.html | 27 +++--- .../main.html | 16 ++-- .../samples/observe-deferred/main.html | 27 +++--- .../oncreate-async-arrow-block/main.html | 10 +-- .../samples/oncreate-async-arrow/main.html | 6 +- test/runtime/samples/oncreate-async/main.html | 10 +-- .../oncreate-sibling-order/Nested.html | 18 ++-- .../samples/oncreate-sibling-order/main.html | 12 +-- .../samples/ondestroy-before-cleanup/Top.html | 17 ++-- .../ondestroy-before-cleanup/main.html | 23 ++--- test/runtime/samples/onrender-chain/Item.html | 24 +++-- test/runtime/samples/onrender-chain/List.html | 30 ++----- test/runtime/samples/onrender-chain/main.html | 12 +-- .../ParentWidget.html | 10 +-- .../Widget.html | 18 ++-- .../main.html | 17 ++-- .../onrender-fires-when-ready/Widget.html | 18 ++-- .../onrender-fires-when-ready/main.html | 16 ++-- .../samples/onstate-before-oncreate/main.html | 29 +++--- .../samples/onstate-before-render/_config.js | 2 +- .../samples/onstate-before-render/main.html | 38 ++++---- .../samples/onstate-no-template/_config.js | 11 --- .../samples/onstate-no-template/main.html | 7 -- test/runtime/samples/onstate/main.html | 21 +++-- test/runtime/samples/onupdate/main.html | 25 +++--- test/runtime/samples/options/main.html | 20 ++--- test/runtime/samples/preload/main.html | 14 ++- .../samples/select-change-handler/main.html | 22 ++--- test/runtime/samples/select-props/main.html | 24 +++-- .../samples/set-clones-input/main.html | 10 +-- .../runtime/samples/set-in-oncreate/main.html | 18 ++-- .../Widget.html | 23 ++--- .../set-in-onstate-dedupes-renders/main.html | 28 ++---- test/runtime/samples/set-in-onstate/main.html | 23 +++-- .../samples/set-prevents-loop/main.html | 22 ++--- .../samples/set-undefined-attr/main.html | 20 ++--- test/runtime/samples/setup/_config.js | 5 -- test/runtime/samples/setup/main.html | 7 -- .../sigil-component-attribute/main.html | 6 +- .../spread-component-dynamic/main.html | 14 +-- .../main.html | 19 ++-- .../spread-component-with-bind/main.html | 17 ++-- .../samples/spread-component/main.html | 12 ++- .../samples/spread-each-component/main.html | 14 ++- .../main.html | 16 ++-- test/runtime/samples/spread-element/main.html | 16 ++-- .../samples/store-binding/NameInput.html | 1 - test/runtime/samples/store-binding/_config.js | 33 ------- test/runtime/samples/store-binding/main.html | 10 --- .../samples/store-child-data/Component.html | 1 - .../samples/store-child-data/_config.js | 22 ----- .../samples/store-child-data/main.html | 9 -- .../TextInput.html | 1 - .../store-component-binding-deep/_config.js | 47 ---------- .../store-component-binding-deep/main.html | 10 --- .../store-component-binding-each/Widget.html | 1 - .../store-component-binding-each/_config.js | 41 --------- .../store-component-binding-each/main.html | 15 ---- .../store-component-binding/TextInput.html | 1 - .../store-component-binding/_config.js | 45 ---------- .../samples/store-component-binding/main.html | 10 --- .../store-computed-oncreate/_config.js | 11 --- .../samples/store-computed-oncreate/main.html | 10 --- test/runtime/samples/store-computed/Todo.html | 15 ---- .../runtime/samples/store-computed/_config.js | 63 ------------- test/runtime/samples/store-computed/main.html | 11 --- .../samples/store-event/NameInput.html | 1 - test/runtime/samples/store-event/_config.js | 34 ------- test/runtime/samples/store-event/main.html | 10 --- test/runtime/samples/store-nested/Nested.html | 13 --- test/runtime/samples/store-nested/_config.js | 5 -- test/runtime/samples/store-nested/main.html | 11 --- .../samples/store-onstate-dollar/_config.js | 27 ------ .../samples/store-onstate-dollar/main.html | 1 - test/runtime/samples/store-root/Nested.html | 1 - test/runtime/samples/store-root/_config.js | 15 ---- test/runtime/samples/store-root/main.html | 19 ---- test/runtime/samples/store/_config.js | 17 ---- test/runtime/samples/store/main.html | 1 - .../Rect.html | 11 +-- .../main.html | 15 ++-- .../Rect.html | 11 ++- .../main.html | 15 ++-- .../Rect.html | 11 ++- .../main.html | 15 ++-- .../svg-each-block-namespace/main.html | 14 +-- .../transition-css-deferred-removal/main.html | 48 +++++----- .../samples/transition-css-delay/main.html | 32 ++++--- .../samples/transition-css-duration/main.html | 30 +++---- .../main.html | 32 ++++--- .../transition-js-aborted-outro/main.html | 30 +++---- .../samples/transition-js-args/main.html | 26 +++--- .../transition-js-await-block/main.html | 30 +++---- .../samples/transition-js-context/main.html | 28 +++--- .../samples/transition-js-deferred/main.html | 34 ++++--- .../transition-js-delay-in-out/main.html | 50 +++++------ .../samples/transition-js-delay/main.html | 32 ++++--- .../main.html | 30 +++---- .../transition-js-dynamic-component/A.html | 24 +++-- .../transition-js-dynamic-component/B.html | 24 +++-- .../transition-js-dynamic-component/main.html | 12 +-- .../main.html | 33 ++++--- .../main.html | 49 +++++----- .../transition-js-each-block-intro/main.html | 30 +++---- .../main.html | 30 +++---- .../main.html | 30 +++---- .../main.html | 30 +++---- .../transition-js-each-block-outro/main.html | 30 +++---- .../samples/transition-js-events/main.html | 90 ++++++++++--------- .../transition-js-if-block-bidi/main.html | 32 ++++--- .../main.html | 31 ++++--- .../main.html | 31 ++++--- .../main.html | 30 +++---- .../main.html | 46 +++++----- .../transition-js-if-block-intro/main.html | 30 +++---- .../main.html | 32 +++---- .../main.html | 34 +++---- .../main.html | 33 +++---- .../main.html | 33 +++---- .../main.html | 34 +++---- .../samples/transition-js-initial/main.html | 24 +++-- .../main.html | 24 +++-- .../Widget.html | 24 +++-- .../main.html | 12 +-- .../main.html | 24 +++-- .../transition-js-nested-await/main.html | 31 ++++--- .../Widget.html | 24 +++-- .../transition-js-nested-component/main.html | 16 ++-- .../main.html | 29 +++--- .../main.html | 15 ++-- .../transition-js-nested-each-keyed/main.html | 31 ++++--- .../transition-js-nested-each/main.html | 31 ++++--- .../samples/transition-js-nested-if/main.html | 31 ++++--- .../transition-js-nested-intro/Child.html | 26 +++--- .../transition-js-nested-intro/main.html | 14 ++- .../main.html | 31 ++++--- .../transition-js-parameterised/main.html | 30 +++---- .../samples/window-event-context/main.html | 2 +- .../samples/window-event-custom/main.html | 38 ++++---- test/runtime/samples/window-event/main.html | 2 +- .../attribute-escaped-quotes-spread/main.html | 21 ++--- .../attribute-escaped-quotes/main.html | 13 +-- .../samples/bindings/main.html | 13 ++- .../component-binding-renamed/Foo.html | 12 +-- .../component-binding-renamed/main.html | 11 +-- .../samples/component-binding/Foo.html | 12 +-- .../samples/component-binding/main.html | 10 +-- .../samples/component-data-dynamic/main.html | 15 ++-- .../samples/component-data-empty/main.html | 12 +-- .../component-refs-and-attributes/main.html | 14 ++- .../samples/component-refs/main.html | 10 +-- .../main.svelte | 12 +-- .../samples/component-yield/Widget.html | 12 +-- .../samples/component-yield/main.html | 18 ++-- .../samples/component/main.html | 12 +-- .../samples/computed/main.html | 22 +++-- .../samples/default-data-override/main.html | 12 +-- .../samples/default-data/main.html | 12 +-- .../samples/directives/main.html | 2 +- .../samples/helpers/main.html | 16 +--- .../samples/import-non-component/main.html | 12 +-- .../samples/sanitize-name/main.html | 8 +- .../samples/styles-nested/One.html | 14 ++- .../samples/styles-nested/main.html | 12 +-- .../samples/textarea-children/main.html | 14 ++- .../samples/textarea-value/main.html | 12 +-- .../samples/triple/main.html | 12 +-- .../samples/binding-shorthand/input.html | 10 +-- test/sourcemaps/samples/script/input.html | 14 +-- test/stats/samples/hooks/input.html | 10 +-- .../samples/a11y-not-on-components/input.html | 6 -- .../await-component-is-used/input.html | 16 ++-- .../samples/event-handler-ref/input.html | 2 +- .../samples/event-modifiers-legacy/input.html | 2 +- .../event-modifiers-redundant/input.html | 24 +++-- .../samples/helper-clash-context/input.html | 24 ++--- .../input.html | 11 --- .../warnings.json | 15 ---- .../input.html | 18 ++-- .../method-nonexistent-helper/input.html | 22 ++--- .../samples/method-nonexistent/input.html | 14 ++- .../samples/oncreate-arrow-no-this/input.html | 6 +- .../ondestroy-arrow-no-this/input.html | 6 +- .../samples/onstate-arrow-no-this/input.html | 6 +- .../samples/onupdate-arrow-no-this/input.html | 6 +- .../samples/store-invalid-callee/input.html | 2 +- .../input.html | 11 ++- .../samples/unused-components/input.html | 7 -- .../validator/samples/unused-event/input.html | 8 +- .../samples/unused-helper/input.html | 6 +- .../samples/unused-transition/input.html | 8 +- .../samples/window-event-invalid/input.html | 2 +- 516 files changed, 3124 insertions(+), 5155 deletions(-) delete mode 100644 test/runtime/samples/computed-state-object/_config.js delete mode 100644 test/runtime/samples/computed-state-object/main.html delete mode 100644 test/runtime/samples/computed-whole-state/_config.js delete mode 100644 test/runtime/samples/computed-whole-state/main.html delete mode 100644 test/runtime/samples/dev-warning-bad-set-argument/_config.js delete mode 100644 test/runtime/samples/dev-warning-bad-set-argument/main.html delete mode 100644 test/runtime/samples/event-handler-destroy/_config.js delete mode 100644 test/runtime/samples/event-handler-destroy/main.html delete mode 100644 test/runtime/samples/event-handler-shorthand/_config.js delete mode 100644 test/runtime/samples/event-handler-shorthand/main.html delete mode 100644 test/runtime/samples/object-rest/_config.js delete mode 100644 test/runtime/samples/object-rest/main.html delete mode 100644 test/runtime/samples/onstate-no-template/_config.js delete mode 100644 test/runtime/samples/onstate-no-template/main.html delete mode 100644 test/runtime/samples/setup/_config.js delete mode 100644 test/runtime/samples/setup/main.html delete mode 100644 test/runtime/samples/store-binding/NameInput.html delete mode 100644 test/runtime/samples/store-binding/_config.js delete mode 100644 test/runtime/samples/store-binding/main.html delete mode 100644 test/runtime/samples/store-child-data/Component.html delete mode 100644 test/runtime/samples/store-child-data/_config.js delete mode 100644 test/runtime/samples/store-child-data/main.html delete mode 100644 test/runtime/samples/store-component-binding-deep/TextInput.html delete mode 100644 test/runtime/samples/store-component-binding-deep/_config.js delete mode 100644 test/runtime/samples/store-component-binding-deep/main.html delete mode 100644 test/runtime/samples/store-component-binding-each/Widget.html delete mode 100644 test/runtime/samples/store-component-binding-each/_config.js delete mode 100644 test/runtime/samples/store-component-binding-each/main.html delete mode 100644 test/runtime/samples/store-component-binding/TextInput.html delete mode 100644 test/runtime/samples/store-component-binding/_config.js delete mode 100644 test/runtime/samples/store-component-binding/main.html delete mode 100644 test/runtime/samples/store-computed-oncreate/_config.js delete mode 100644 test/runtime/samples/store-computed-oncreate/main.html delete mode 100644 test/runtime/samples/store-computed/Todo.html delete mode 100644 test/runtime/samples/store-computed/_config.js delete mode 100644 test/runtime/samples/store-computed/main.html delete mode 100644 test/runtime/samples/store-event/NameInput.html delete mode 100644 test/runtime/samples/store-event/_config.js delete mode 100644 test/runtime/samples/store-event/main.html delete mode 100644 test/runtime/samples/store-nested/Nested.html delete mode 100644 test/runtime/samples/store-nested/_config.js delete mode 100644 test/runtime/samples/store-nested/main.html delete mode 100644 test/runtime/samples/store-onstate-dollar/_config.js delete mode 100644 test/runtime/samples/store-onstate-dollar/main.html delete mode 100644 test/runtime/samples/store-root/Nested.html delete mode 100644 test/runtime/samples/store-root/_config.js delete mode 100644 test/runtime/samples/store-root/main.html delete mode 100644 test/runtime/samples/store/_config.js delete mode 100644 test/runtime/samples/store/main.html delete mode 100644 test/validator/samples/helper-purity-check-needs-arguments/input.html delete mode 100644 test/validator/samples/helper-purity-check-needs-arguments/warnings.json diff --git a/test/css/samples/omit-scoping-attribute-class-dynamic/input.html b/test/css/samples/omit-scoping-attribute-class-dynamic/input.html index 40c8ad0b32..63743b1dae 100644 --- a/test/css/samples/omit-scoping-attribute-class-dynamic/input.html +++ b/test/css/samples/omit-scoping-attribute-class-dynamic/input.html @@ -1,3 +1,7 @@ + +

this is styled

this is unstyled

@@ -5,14 +9,4 @@ .foo { color: red; } - - - \ No newline at end of file + \ No newline at end of file diff --git a/test/custom-elements/samples/custom-method/main.html b/test/custom-elements/samples/custom-method/main.html index b388472f23..8b85a52575 100644 --- a/test/custom-elements/samples/custom-method/main.html +++ b/test/custom-elements/samples/custom-method/main.html @@ -1,13 +1,11 @@ -

{foo}

+ \ No newline at end of file + export let foo; + + +

{foo}

\ No newline at end of file diff --git a/test/custom-elements/samples/escaped-css/main.html b/test/custom-elements/samples/escaped-css/main.html index 1f86593b8f..0a28900d85 100644 --- a/test/custom-elements/samples/escaped-css/main.html +++ b/test/custom-elements/samples/escaped-css/main.html @@ -1,13 +1,9 @@ + + - - \ No newline at end of file + \ No newline at end of file diff --git a/test/custom-elements/samples/html-slots/main.html b/test/custom-elements/samples/html-slots/main.html index 7a8e47c7ee..fbc70b0aeb 100644 --- a/test/custom-elements/samples/html-slots/main.html +++ b/test/custom-elements/samples/html-slots/main.html @@ -1,3 +1,5 @@ + +

default fallback content

@@ -6,10 +8,4 @@

foo fallback content

-
- - \ No newline at end of file + \ No newline at end of file diff --git a/test/custom-elements/samples/html/main.html b/test/custom-elements/samples/html/main.html index 67b0fa792c..4765b5a151 100644 --- a/test/custom-elements/samples/html/main.html +++ b/test/custom-elements/samples/html/main.html @@ -1,7 +1,7 @@ -

Hello {name}!

+ \ No newline at end of file + export let name; + + +

Hello {name}!

\ No newline at end of file diff --git a/test/custom-elements/samples/nested/Counter.html b/test/custom-elements/samples/nested/Counter.html index c25db21ac8..d365ce7644 100644 --- a/test/custom-elements/samples/nested/Counter.html +++ b/test/custom-elements/samples/nested/Counter.html @@ -1,13 +1,7 @@ - + - data() { - return { - count: 0 - }; - } - }; - \ No newline at end of file + \ No newline at end of file diff --git a/test/custom-elements/samples/nested/main.html b/test/custom-elements/samples/nested/main.html index f930d78a28..3e80f6015e 100644 --- a/test/custom-elements/samples/nested/main.html +++ b/test/custom-elements/samples/nested/main.html @@ -1,12 +1,10 @@ - -

clicked {count} times

+ - components: { Counter } - }; - \ No newline at end of file + +

clicked {count} times

\ No newline at end of file diff --git a/test/custom-elements/samples/new-styled/main.html b/test/custom-elements/samples/new-styled/main.html index 4163b0732d..be1b397fa5 100644 --- a/test/custom-elements/samples/new-styled/main.html +++ b/test/custom-elements/samples/new-styled/main.html @@ -1,13 +1,9 @@ + +

styled

- - \ No newline at end of file + \ No newline at end of file diff --git a/test/custom-elements/samples/new/main.html b/test/custom-elements/samples/new/main.html index 67b0fa792c..4765b5a151 100644 --- a/test/custom-elements/samples/new/main.html +++ b/test/custom-elements/samples/new/main.html @@ -1,7 +1,7 @@ -

Hello {name}!

+ \ No newline at end of file + export let name; + + +

Hello {name}!

\ No newline at end of file diff --git a/test/custom-elements/samples/no-missing-prop-warnings/main.html b/test/custom-elements/samples/no-missing-prop-warnings/main.html index 61d4e837f8..a9baee2faf 100644 --- a/test/custom-elements/samples/no-missing-prop-warnings/main.html +++ b/test/custom-elements/samples/no-missing-prop-warnings/main.html @@ -1,8 +1,9 @@ -

foo: {foo}

-

bar: {bar}

+ \ No newline at end of file + export let foo; + export let bar; + + +

foo: {foo}

+

bar: {bar}

\ No newline at end of file diff --git a/test/custom-elements/samples/oncreate/main.html b/test/custom-elements/samples/oncreate/main.html index 0c9b1b5c12..7854aeec02 100644 --- a/test/custom-elements/samples/oncreate/main.html +++ b/test/custom-elements/samples/oncreate/main.html @@ -1,9 +1,12 @@ + + \ No newline at end of file + import { onmount } from 'svelte'; + + export let wasCreated; + + onmount(() => { + wasCreated = true; + }); + + diff --git a/test/custom-elements/samples/props/main.html b/test/custom-elements/samples/props/main.html index db8465591e..bee06784e4 100644 --- a/test/custom-elements/samples/props/main.html +++ b/test/custom-elements/samples/props/main.html @@ -1,15 +1,9 @@ - + - data() { - return { - items: ['a', 'b', 'c'] - }; - } - }; - \ No newline at end of file + \ No newline at end of file diff --git a/test/custom-elements/samples/props/my-widget.html b/test/custom-elements/samples/props/my-widget.html index b4ed9b38a6..6aabe5a73b 100644 --- a/test/custom-elements/samples/props/my-widget.html +++ b/test/custom-elements/samples/props/my-widget.html @@ -1,14 +1,8 @@ -

{items.length} items

-

{items.join(', ')}

+ - data() { - return { - items: [] - }; - } - }; - \ No newline at end of file +

{items.length} items

+

{items.join(', ')}

\ No newline at end of file diff --git a/test/hydration/samples/component-in-element/main.html b/test/hydration/samples/component-in-element/main.html index d639570c56..4367a831ea 100644 --- a/test/hydration/samples/component-in-element/main.html +++ b/test/hydration/samples/component-in-element/main.html @@ -1,13 +1,7 @@ -
- -
- - export default { - components: { - Nested - } - }; - \ No newline at end of file +
+ +
\ No newline at end of file diff --git a/test/hydration/samples/component/main.html b/test/hydration/samples/component/main.html index c669ca09a8..583835f46a 100644 --- a/test/hydration/samples/component/main.html +++ b/test/hydration/samples/component/main.html @@ -1,11 +1,5 @@ - - - export default { - components: { - Nested - } - }; - \ No newline at end of file + \ No newline at end of file diff --git a/test/hydration/samples/each-block-arg-clash/main.html b/test/hydration/samples/each-block-arg-clash/main.html index f42706e152..7f04cd5e2f 100644 --- a/test/hydration/samples/each-block-arg-clash/main.html +++ b/test/hydration/samples/each-block-arg-clash/main.html @@ -2,4 +2,4 @@ {#each things.foo as foo}
  • {foo}
  • {/each} - + \ No newline at end of file diff --git a/test/hydration/samples/event-handler/main.html b/test/hydration/samples/event-handler/main.html index 83ecadb0d6..d51636617f 100644 --- a/test/hydration/samples/event-handler/main.html +++ b/test/hydration/samples/event-handler/main.html @@ -1,4 +1,4 @@ - + {#if clicked}

    clicked!

    diff --git a/test/js/samples/action/input.html b/test/js/samples/action/input.html index 5b42061fe5..713e44249a 100644 --- a/test/js/samples/action/input.html +++ b/test/js/samples/action/input.html @@ -1,23 +1,19 @@ -Test - + +Test \ No newline at end of file diff --git a/test/js/samples/collapses-text-around-comments/input.html b/test/js/samples/collapses-text-around-comments/input.html index 54c15b7922..a368b09ca4 100644 --- a/test/js/samples/collapses-text-around-comments/input.html +++ b/test/js/samples/collapses-text-around-comments/input.html @@ -1,3 +1,6 @@ + @@ -17,13 +20,7 @@ - + diff --git a/test/js/samples/component-static-array/input.html b/test/js/samples/component-static-array/input.html index f87ea0a7e5..3f4ecbe3c7 100644 --- a/test/js/samples/component-static-array/input.html +++ b/test/js/samples/component-static-array/input.html @@ -1,9 +1,5 @@ - - \ No newline at end of file + const Nested = window.Nested; + + + \ No newline at end of file diff --git a/test/js/samples/component-static-immutable/input.html b/test/js/samples/component-static-immutable/input.html index df6c82ea81..d3c9d8066a 100644 --- a/test/js/samples/component-static-immutable/input.html +++ b/test/js/samples/component-static-immutable/input.html @@ -1,10 +1,7 @@ - + \ No newline at end of file + const Nested = window.Nested; + + + \ No newline at end of file diff --git a/test/js/samples/component-static-immutable2/input.html b/test/js/samples/component-static-immutable2/input.html index 44a2bf2bc1..0eeff6aeb6 100644 --- a/test/js/samples/component-static-immutable2/input.html +++ b/test/js/samples/component-static-immutable2/input.html @@ -1,9 +1,5 @@ - - \ No newline at end of file + const Nested = window.Nested; + + + \ No newline at end of file diff --git a/test/js/samples/component-static/input.html b/test/js/samples/component-static/input.html index 44a2bf2bc1..0eeff6aeb6 100644 --- a/test/js/samples/component-static/input.html +++ b/test/js/samples/component-static/input.html @@ -1,9 +1,5 @@ - - \ No newline at end of file + const Nested = window.Nested; + + + \ No newline at end of file diff --git a/test/js/samples/computed-collapsed-if/input.html b/test/js/samples/computed-collapsed-if/input.html index c7280e5ef8..c1349afc99 100644 --- a/test/js/samples/computed-collapsed-if/input.html +++ b/test/js/samples/computed-collapsed-if/input.html @@ -1,8 +1,11 @@ \ No newline at end of file diff --git a/test/js/samples/css-shadow-dom-keyframes/input.html b/test/js/samples/css-shadow-dom-keyframes/input.html index fcdc7a9f0e..cc1274d7f9 100644 --- a/test/js/samples/css-shadow-dom-keyframes/input.html +++ b/test/js/samples/css-shadow-dom-keyframes/input.html @@ -1,3 +1,5 @@ + +
    fades in
    - - \ No newline at end of file + \ No newline at end of file diff --git a/test/js/samples/deconflict-globals/input.html b/test/js/samples/deconflict-globals/input.html index 6c3dc88e87..b0760d27fe 100644 --- a/test/js/samples/deconflict-globals/input.html +++ b/test/js/samples/deconflict-globals/input.html @@ -1,11 +1,9 @@ \ No newline at end of file diff --git a/test/js/samples/dev-warning-missing-data-computed/input.html b/test/js/samples/dev-warning-missing-data-computed/input.html index 06eb210493..5d1e9836ea 100644 --- a/test/js/samples/dev-warning-missing-data-computed/input.html +++ b/test/js/samples/dev-warning-missing-data-computed/input.html @@ -1,12 +1,12 @@ + +

    {Math.max(0, foo)} - {bar} -

    - - \ No newline at end of file + {bar()} +

    \ No newline at end of file diff --git a/test/js/samples/do-use-dataset/input.html b/test/js/samples/do-use-dataset/input.html index fcd821731e..ffd72ac6ee 100644 --- a/test/js/samples/do-use-dataset/input.html +++ b/test/js/samples/do-use-dataset/input.html @@ -1,2 +1,2 @@
    -
    +
    \ No newline at end of file diff --git a/test/js/samples/dont-use-dataset-in-legacy/input.html b/test/js/samples/dont-use-dataset-in-legacy/input.html index fcd821731e..ffd72ac6ee 100644 --- a/test/js/samples/dont-use-dataset-in-legacy/input.html +++ b/test/js/samples/dont-use-dataset-in-legacy/input.html @@ -1,2 +1,2 @@
    -
    +
    \ No newline at end of file diff --git a/test/js/samples/dont-use-dataset-in-svg/input.html b/test/js/samples/dont-use-dataset-in-svg/input.html index 3032322b80..fe6c4eba9b 100644 --- a/test/js/samples/dont-use-dataset-in-svg/input.html +++ b/test/js/samples/dont-use-dataset-in-svg/input.html @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/test/js/samples/dynamic-import/input.html b/test/js/samples/dynamic-import/input.html index cda0dbfbaf..eb7ca117c5 100644 --- a/test/js/samples/dynamic-import/input.html +++ b/test/js/samples/dynamic-import/input.html @@ -1,9 +1 @@ - - - \ No newline at end of file + \ No newline at end of file diff --git a/test/js/samples/each-block-keyed-animated/input.html b/test/js/samples/each-block-keyed-animated/input.html index 8c2e2f872b..53bcb463b1 100644 --- a/test/js/samples/each-block-keyed-animated/input.html +++ b/test/js/samples/each-block-keyed-animated/input.html @@ -1,23 +1,21 @@ -{#each things as thing (thing.id)} -
    {thing.name}
    -{/each} - \ No newline at end of file + }; + } + + +{#each things as thing (thing.id)} +
    {thing.name}
    +{/each} \ No newline at end of file diff --git a/test/js/samples/event-handlers-custom/input.html b/test/js/samples/event-handlers-custom/input.html index 00d79363fa..d8cec97111 100644 --- a/test/js/samples/event-handlers-custom/input.html +++ b/test/js/samples/event-handlers-custom/input.html @@ -1,16 +1,13 @@ - - \ No newline at end of file + export let bar; + + function handleFoo(bar) { + console.log( bar ); + } + + function foo(node, callback) { + // code goes here + } + + + \ No newline at end of file diff --git a/test/js/samples/event-modifiers/input.html b/test/js/samples/event-modifiers/input.html index 4726d96c70..5bbcebb72a 100644 --- a/test/js/samples/event-modifiers/input.html +++ b/test/js/samples/event-modifiers/input.html @@ -1,19 +1,15 @@ -
    - - - -
    - - handleClick() { - // ... - } - } - }; - \ No newline at end of file +
    + + + +
    \ No newline at end of file diff --git a/test/js/samples/media-bindings/input.html b/test/js/samples/media-bindings/input.html index e7fe359341..3f7a0b66d1 100644 --- a/test/js/samples/media-bindings/input.html +++ b/test/js/samples/media-bindings/input.html @@ -1 +1 @@ -
    \ No newline at end of file diff --git a/test/runtime/samples/component-nested-deeper/main.html b/test/runtime/samples/component-nested-deeper/main.html index e0749d49c3..4c72ae6743 100644 --- a/test/runtime/samples/component-nested-deeper/main.html +++ b/test/runtime/samples/component-nested-deeper/main.html @@ -1,11 +1,7 @@ - - \ No newline at end of file + export let values; + + + \ No newline at end of file diff --git a/test/runtime/samples/component-not-void/Link.html b/test/runtime/samples/component-not-void/Link.html index ca134c6130..18a6961518 100644 --- a/test/runtime/samples/component-not-void/Link.html +++ b/test/runtime/samples/component-not-void/Link.html @@ -1 +1 @@ -

    +

    \ No newline at end of file diff --git a/test/runtime/samples/component-not-void/main.html b/test/runtime/samples/component-not-void/main.html index 99f9a931b4..0769c81092 100644 --- a/test/runtime/samples/component-not-void/main.html +++ b/test/runtime/samples/component-not-void/main.html @@ -1,11 +1,5 @@ -Hello - + +Hello \ No newline at end of file diff --git a/test/runtime/samples/component-ref/Widget.html b/test/runtime/samples/component-ref/Widget.html index c8cf786cc8..58ae4f96bc 100644 --- a/test/runtime/samples/component-ref/Widget.html +++ b/test/runtime/samples/component-ref/Widget.html @@ -1,9 +1,11 @@ -

    i am a widget

    - + +

    i am a widget

    \ No newline at end of file diff --git a/test/runtime/samples/component-ref/main.html b/test/runtime/samples/component-ref/main.html index 162f6f5d23..3fd2143cd9 100644 --- a/test/runtime/samples/component-ref/main.html +++ b/test/runtime/samples/component-ref/main.html @@ -1,11 +1,7 @@ -
    - -
    - + +
    + +
    \ No newline at end of file diff --git a/test/runtime/samples/component-shorthand-import/Widget.html b/test/runtime/samples/component-shorthand-import/Widget.html index 7ffdd798f3..10c1f07afe 100644 --- a/test/runtime/samples/component-shorthand-import/Widget.html +++ b/test/runtime/samples/component-shorthand-import/Widget.html @@ -1 +1 @@ -

    This is the widget.

    +

    This is the widget.

    \ No newline at end of file diff --git a/test/runtime/samples/component-shorthand-import/main.html b/test/runtime/samples/component-shorthand-import/main.html index 01320a9b39..cbcde3f1ed 100644 --- a/test/runtime/samples/component-shorthand-import/main.html +++ b/test/runtime/samples/component-shorthand-import/main.html @@ -1,5 +1,5 @@ - - + + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-default/main.html b/test/runtime/samples/component-slot-default/main.html index 3f5fad9363..4b9758e601 100644 --- a/test/runtime/samples/component-slot-default/main.html +++ b/test/runtime/samples/component-slot-default/main.html @@ -1,13 +1,7 @@ - - Hello - - + + + Hello + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-dynamic/Nested.html b/test/runtime/samples/component-slot-dynamic/Nested.html index ff66691089..da60b832e3 100644 --- a/test/runtime/samples/component-slot-dynamic/Nested.html +++ b/test/runtime/samples/component-slot-dynamic/Nested.html @@ -1,13 +1,7 @@ - - {foo} - - + + + {foo} + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-dynamic/main.html b/test/runtime/samples/component-slot-dynamic/main.html index 348754d88c..c48d39d522 100644 --- a/test/runtime/samples/component-slot-dynamic/main.html +++ b/test/runtime/samples/component-slot-dynamic/main.html @@ -1,13 +1,7 @@ - -

    override default slot

    -
    - + + +

    override default slot

    +
    \ No newline at end of file diff --git a/test/runtime/samples/component-slot-each-block/main.html b/test/runtime/samples/component-slot-each-block/main.html index 05dd7421c0..911eb5c1ae 100644 --- a/test/runtime/samples/component-slot-each-block/main.html +++ b/test/runtime/samples/component-slot-each-block/main.html @@ -1,13 +1,11 @@ + + {#each things as thing} {thing} {/each} - - - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-empty/main.html b/test/runtime/samples/component-slot-empty/main.html index 30b5cc73e3..3d76b0a696 100644 --- a/test/runtime/samples/component-slot-empty/main.html +++ b/test/runtime/samples/component-slot-empty/main.html @@ -1,12 +1,6 @@ - - - + + + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-fallback/main.html b/test/runtime/samples/component-slot-fallback/main.html index 8894e86940..96186f63d7 100644 --- a/test/runtime/samples/component-slot-fallback/main.html +++ b/test/runtime/samples/component-slot-fallback/main.html @@ -1,13 +1,7 @@ - -

    not fallback

    -
    - + + +

    not fallback

    +
    \ No newline at end of file diff --git a/test/runtime/samples/component-slot-if-block-before-node/main.html b/test/runtime/samples/component-slot-if-block-before-node/main.html index 30e04fb566..01ea1e8455 100644 --- a/test/runtime/samples/component-slot-if-block-before-node/main.html +++ b/test/runtime/samples/component-slot-if-block-before-node/main.html @@ -1,17 +1,13 @@ + + {#if foo}

    conditional

    {/if}

    unconditional

    -
    - - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-if-block/main.html b/test/runtime/samples/component-slot-if-block/main.html index e7ce5ce2a9..2b0405a471 100644 --- a/test/runtime/samples/component-slot-if-block/main.html +++ b/test/runtime/samples/component-slot-if-block/main.html @@ -1,17 +1,13 @@ + +

    unconditional

    {#if foo}

    conditional

    {/if} -
    - - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-if-else-block-before-node/main.html b/test/runtime/samples/component-slot-if-else-block-before-node/main.html index 52e923780a..684497b98a 100644 --- a/test/runtime/samples/component-slot-if-else-block-before-node/main.html +++ b/test/runtime/samples/component-slot-if-else-block-before-node/main.html @@ -1,3 +1,9 @@ + + {#if !enabled}

    disabled

    @@ -6,14 +12,4 @@ {/if}

    unconditional

    -
    - - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-name-with-hyphen/main.html b/test/runtime/samples/component-slot-name-with-hyphen/main.html index b3b6f8e9f6..bfb3b5c14f 100644 --- a/test/runtime/samples/component-slot-name-with-hyphen/main.html +++ b/test/runtime/samples/component-slot-name-with-hyphen/main.html @@ -1,13 +1,7 @@ - -

    Hello

    -
    - + + +

    Hello

    +
    \ No newline at end of file diff --git a/test/runtime/samples/component-slot-named/main.html b/test/runtime/samples/component-slot-named/main.html index 76ba5b072b..87d74226c5 100644 --- a/test/runtime/samples/component-slot-named/main.html +++ b/test/runtime/samples/component-slot-named/main.html @@ -1,16 +1,10 @@ + + Hello

    foo

    bar

    -
    - - + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-nested-component/main.html b/test/runtime/samples/component-slot-nested-component/main.html index 2d094056c9..d86e58bb70 100644 --- a/test/runtime/samples/component-slot-nested-component/main.html +++ b/test/runtime/samples/component-slot-nested-component/main.html @@ -1,12 +1,8 @@ - - foo - - - export default { - components: { Outer, Inner } - }; - \ No newline at end of file + + foo + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-nested/main.html b/test/runtime/samples/component-slot-nested/main.html index 226f9024ee..a109ec9c06 100644 --- a/test/runtime/samples/component-slot-nested/main.html +++ b/test/runtime/samples/component-slot-nested/main.html @@ -1,13 +1,7 @@ - -

    bar

    -
    - + + +

    bar

    +
    \ No newline at end of file diff --git a/test/runtime/samples/component-static-at-symbol/Email.html b/test/runtime/samples/component-static-at-symbol/Email.html index f6b3b9f053..8af8c3d3b1 100644 --- a/test/runtime/samples/component-static-at-symbol/Email.html +++ b/test/runtime/samples/component-static-at-symbol/Email.html @@ -1 +1 @@ -
    email +email \ No newline at end of file diff --git a/test/runtime/samples/component-static-at-symbol/main.html b/test/runtime/samples/component-static-at-symbol/main.html index f8a0e1c6cd..275b922f6a 100644 --- a/test/runtime/samples/component-static-at-symbol/main.html +++ b/test/runtime/samples/component-static-at-symbol/main.html @@ -1,9 +1,5 @@ - - + + \ No newline at end of file diff --git a/test/runtime/samples/component-yield-follows-element/main.html b/test/runtime/samples/component-yield-follows-element/main.html index 15747d9d53..b362e9a410 100644 --- a/test/runtime/samples/component-yield-follows-element/main.html +++ b/test/runtime/samples/component-yield-follows-element/main.html @@ -1,11 +1,5 @@ -test - + +test \ No newline at end of file diff --git a/test/runtime/samples/component-yield-if/Widget.html b/test/runtime/samples/component-yield-if/Widget.html index 2649b132e4..209f43ae8e 100644 --- a/test/runtime/samples/component-yield-if/Widget.html +++ b/test/runtime/samples/component-yield-if/Widget.html @@ -1,15 +1,9 @@ + +

    {#if show} {/if} -

    - - +

    \ No newline at end of file diff --git a/test/runtime/samples/component-yield-if/main.html b/test/runtime/samples/component-yield-if/main.html index 974865f61c..a006c84caf 100644 --- a/test/runtime/samples/component-yield-if/main.html +++ b/test/runtime/samples/component-yield-if/main.html @@ -1,17 +1,9 @@ -
    - {data} -
    - + +
    + {data} +
    \ No newline at end of file diff --git a/test/runtime/samples/component-yield-multiple-in-each/Widget.html b/test/runtime/samples/component-yield-multiple-in-each/Widget.html index ca134c6130..18a6961518 100644 --- a/test/runtime/samples/component-yield-multiple-in-each/Widget.html +++ b/test/runtime/samples/component-yield-multiple-in-each/Widget.html @@ -1 +1 @@ -

    +

    \ No newline at end of file diff --git a/test/runtime/samples/component-yield-multiple-in-each/main.html b/test/runtime/samples/component-yield-multiple-in-each/main.html index efc4f382e3..5f2027ee98 100644 --- a/test/runtime/samples/component-yield-multiple-in-each/main.html +++ b/test/runtime/samples/component-yield-multiple-in-each/main.html @@ -1,19 +1,9 @@ -{#each people as person} - Hello {person} -{/each} - + +{#each people as person} + Hello {person} +{/each} \ No newline at end of file diff --git a/test/runtime/samples/component-yield-multiple-in-if/Widget.html b/test/runtime/samples/component-yield-multiple-in-if/Widget.html index 0be5224893..0f4848b8a4 100644 --- a/test/runtime/samples/component-yield-multiple-in-if/Widget.html +++ b/test/runtime/samples/component-yield-multiple-in-if/Widget.html @@ -1 +1 @@ -

    +

    \ No newline at end of file diff --git a/test/runtime/samples/component-yield-multiple-in-if/main.html b/test/runtime/samples/component-yield-multiple-in-if/main.html index d59276292f..53eba749d6 100644 --- a/test/runtime/samples/component-yield-multiple-in-if/main.html +++ b/test/runtime/samples/component-yield-multiple-in-if/main.html @@ -1,23 +1,13 @@ + +
    {#if arriving} Hello {:else} Goodbye {/if} -
    - - +
    \ No newline at end of file diff --git a/test/runtime/samples/component-yield-nested-if/Inner.html b/test/runtime/samples/component-yield-nested-if/Inner.html index d87e45af56..62120162a9 100644 --- a/test/runtime/samples/component-yield-nested-if/Inner.html +++ b/test/runtime/samples/component-yield-nested-if/Inner.html @@ -1 +1 @@ -Inner +Inner \ No newline at end of file diff --git a/test/runtime/samples/component-yield-nested-if/Outer.html b/test/runtime/samples/component-yield-nested-if/Outer.html index 7a5960212a..1d5fd34e1a 100644 --- a/test/runtime/samples/component-yield-nested-if/Outer.html +++ b/test/runtime/samples/component-yield-nested-if/Outer.html @@ -1,3 +1,3 @@ {#if foo} -{/if} +{/if} \ No newline at end of file diff --git a/test/runtime/samples/component-yield-nested-if/main.html b/test/runtime/samples/component-yield-nested-if/main.html index 36dff0028e..98c27812e6 100644 --- a/test/runtime/samples/component-yield-nested-if/main.html +++ b/test/runtime/samples/component-yield-nested-if/main.html @@ -1,14 +1,11 @@ - - One - - - + + + One + + \ No newline at end of file diff --git a/test/runtime/samples/component-yield-parent/Widget.html b/test/runtime/samples/component-yield-parent/Widget.html index ca134c6130..18a6961518 100644 --- a/test/runtime/samples/component-yield-parent/Widget.html +++ b/test/runtime/samples/component-yield-parent/Widget.html @@ -1 +1 @@ -

    +

    \ No newline at end of file diff --git a/test/runtime/samples/component-yield-parent/main.html b/test/runtime/samples/component-yield-parent/main.html index 5b0a4b4f93..b36dbc1b14 100644 --- a/test/runtime/samples/component-yield-parent/main.html +++ b/test/runtime/samples/component-yield-parent/main.html @@ -1,14 +1,8 @@ -
    - {data} -
    + +
    + {data} +
    \ No newline at end of file diff --git a/test/runtime/samples/component-yield-placement/Modal.html b/test/runtime/samples/component-yield-placement/Modal.html index 0da768c450..225e9e2f37 100644 --- a/test/runtime/samples/component-yield-placement/Modal.html +++ b/test/runtime/samples/component-yield-placement/Modal.html @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/test/runtime/samples/component-yield-placement/main.html b/test/runtime/samples/component-yield-placement/main.html index cbcf697a4a..cc5bfd73ed 100644 --- a/test/runtime/samples/component-yield-placement/main.html +++ b/test/runtime/samples/component-yield-placement/main.html @@ -1,15 +1,13 @@ + + {#if showModal} - +

    Hello!

    {:else} - -{/if} - - \ No newline at end of file + +{/if} \ No newline at end of file diff --git a/test/runtime/samples/component-yield-static/Widget.html b/test/runtime/samples/component-yield-static/Widget.html index 26a00b9191..aa6c6abd76 100644 --- a/test/runtime/samples/component-yield-static/Widget.html +++ b/test/runtime/samples/component-yield-static/Widget.html @@ -1 +1 @@ - + \ No newline at end of file diff --git a/test/runtime/samples/component-yield-static/main.html b/test/runtime/samples/component-yield-static/main.html index a9ca474d58..9d5807872d 100644 --- a/test/runtime/samples/component-yield-static/main.html +++ b/test/runtime/samples/component-yield-static/main.html @@ -1,12 +1,7 @@ -Hello {name} - + +Hello {name} \ No newline at end of file diff --git a/test/runtime/samples/component-yield/main.html b/test/runtime/samples/component-yield/main.html index b8a5b648c5..ff1ec93b04 100644 --- a/test/runtime/samples/component-yield/main.html +++ b/test/runtime/samples/component-yield/main.html @@ -1,16 +1,10 @@ + +

    Hello {#if test} {/if} -

    - - +

    \ No newline at end of file diff --git a/test/runtime/samples/component/Widget.html b/test/runtime/samples/component/Widget.html index 460a2a1c01..9b44ef57a8 100644 --- a/test/runtime/samples/component/Widget.html +++ b/test/runtime/samples/component/Widget.html @@ -1 +1 @@ -

    i am a widget

    +

    i am a widget

    \ No newline at end of file diff --git a/test/runtime/samples/component/main.html b/test/runtime/samples/component/main.html index 5b119b5527..1bd0073a0e 100644 --- a/test/runtime/samples/component/main.html +++ b/test/runtime/samples/component/main.html @@ -1,11 +1,7 @@ -
    - -
    - + +
    + +
    \ No newline at end of file diff --git a/test/runtime/samples/computed-empty/main.html b/test/runtime/samples/computed-empty/main.html index 9dd0e10923..d11d41fa35 100644 --- a/test/runtime/samples/computed-empty/main.html +++ b/test/runtime/samples/computed-empty/main.html @@ -1,14 +1,9 @@ -
    empty
    + +
    empty
    \ No newline at end of file diff --git a/test/runtime/samples/computed-function/main.html b/test/runtime/samples/computed-function/main.html index a432252166..00a0a83c6a 100644 --- a/test/runtime/samples/computed-function/main.html +++ b/test/runtime/samples/computed-function/main.html @@ -1,20 +1,14 @@ -

    {scale(x)}

    - + +

    {scale()(x)}

    \ No newline at end of file diff --git a/test/runtime/samples/computed-state-object/_config.js b/test/runtime/samples/computed-state-object/_config.js deleted file mode 100644 index d9fc4d82ba..0000000000 --- a/test/runtime/samples/computed-state-object/_config.js +++ /dev/null @@ -1,21 +0,0 @@ -export default { - data: { a: 1 }, - - html: ` -

    a: 1

    -

    x: 2

    -

    y: 4

    -

    z: 8

    - `, - - test(assert, component, target) { - component.set({ a: 2 }); - - assert.htmlEqual(target.innerHTML, ` -

    a: 2

    -

    x: 4

    -

    y: 8

    -

    z: 16

    - `) - }, -}; diff --git a/test/runtime/samples/computed-state-object/main.html b/test/runtime/samples/computed-state-object/main.html deleted file mode 100644 index c8c313c8fb..0000000000 --- a/test/runtime/samples/computed-state-object/main.html +++ /dev/null @@ -1,14 +0,0 @@ -

    a: {a}

    -

    x: {x}

    -

    y: {y}

    -

    z: {z}

    - - diff --git a/test/runtime/samples/computed-values-deconflicted/main.html b/test/runtime/samples/computed-values-deconflicted/main.html index e5a016084c..18937d8093 100644 --- a/test/runtime/samples/computed-values-deconflicted/main.html +++ b/test/runtime/samples/computed-values-deconflicted/main.html @@ -1,14 +1,9 @@ -{state} - \ No newline at end of file + export let x = 'waiting'; + + function state() { + return x; + } + + +{state()} \ 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 adf66137fa..dc61cee915 100644 --- a/test/runtime/samples/computed-values-function-dependency/main.html +++ b/test/runtime/samples/computed-values-function-dependency/main.html @@ -1,5 +1,3 @@ -

    {x}

    - - x ({ xGetter }) { - return xGetter(); - } - } - }; - \ No newline at end of file +

    {x()}

    \ No newline at end of file diff --git a/test/runtime/samples/computed-values/main.html b/test/runtime/samples/computed-values/main.html index 7e4f8d7728..1af546bc06 100644 --- a/test/runtime/samples/computed-values/main.html +++ b/test/runtime/samples/computed-values/main.html @@ -1,16 +1,15 @@ -

    {a} + {b} = {c}

    -

    {c} * {c} = {cSquared}

    - + +

    {a} + {b} = {c()}

    +

    {c()} * {c()} = {cSquared()}

    \ No newline at end of file diff --git a/test/runtime/samples/computed-whole-state/_config.js b/test/runtime/samples/computed-whole-state/_config.js deleted file mode 100644 index 0281827b4b..0000000000 --- a/test/runtime/samples/computed-whole-state/_config.js +++ /dev/null @@ -1,25 +0,0 @@ -export default { - html: ` -
    {"wanted":2}
    - `, - - test(assert, component, target) { - component.set({ - unwanted: 3, - wanted: 4, - }); - - assert.htmlEqual(target.innerHTML, ` -
    {"wanted":4}
    - `); - - component.set({ - unwanted: 5, - wanted: 6, - }); - - assert.htmlEqual(target.innerHTML, ` -
    {"wanted":6}
    - `); - }, -}; diff --git a/test/runtime/samples/computed-whole-state/main.html b/test/runtime/samples/computed-whole-state/main.html deleted file mode 100644 index 476d11cc8b..0000000000 --- a/test/runtime/samples/computed-whole-state/main.html +++ /dev/null @@ -1,22 +0,0 @@ -
    {JSON.stringify(props)}
    - diff --git a/test/runtime/samples/css-comments/main.html b/test/runtime/samples/css-comments/main.html index 68eebfdf38..008cbae63e 100644 --- a/test/runtime/samples/css-comments/main.html +++ b/test/runtime/samples/css-comments/main.html @@ -8,4 +8,4 @@ p { color: red; } - + \ No newline at end of file diff --git a/test/runtime/samples/css-false/Widget.html b/test/runtime/samples/css-false/Widget.html index 1d893b8bcd..da7fd4e8b7 100644 --- a/test/runtime/samples/css-false/Widget.html +++ b/test/runtime/samples/css-false/Widget.html @@ -4,4 +4,4 @@ p { color: red; } - + \ No newline at end of file diff --git a/test/runtime/samples/css-false/main.html b/test/runtime/samples/css-false/main.html index 70e77bd59b..dbbc5c325b 100644 --- a/test/runtime/samples/css-false/main.html +++ b/test/runtime/samples/css-false/main.html @@ -1,10 +1,6 @@ -

    control

    - - + +

    control

    + \ No newline at end of file diff --git a/test/runtime/samples/css-space-in-attribute/Widget.html b/test/runtime/samples/css-space-in-attribute/Widget.html index 929e1d40b0..b812ed8816 100644 --- a/test/runtime/samples/css-space-in-attribute/Widget.html +++ b/test/runtime/samples/css-space-in-attribute/Widget.html @@ -8,4 +8,4 @@ [class*=" bar"] { background: black; } - + \ No newline at end of file diff --git a/test/runtime/samples/css-space-in-attribute/main.html b/test/runtime/samples/css-space-in-attribute/main.html index 211e42721a..93bec897f3 100644 --- a/test/runtime/samples/css-space-in-attribute/main.html +++ b/test/runtime/samples/css-space-in-attribute/main.html @@ -1,10 +1,6 @@ -

    control

    - - + +

    control

    + \ No newline at end of file diff --git a/test/runtime/samples/css/Widget.html b/test/runtime/samples/css/Widget.html index ad2b7e681d..43328db0fd 100644 --- a/test/runtime/samples/css/Widget.html +++ b/test/runtime/samples/css/Widget.html @@ -4,4 +4,4 @@ p { color: #f00; } - + \ No newline at end of file diff --git a/test/runtime/samples/css/main.html b/test/runtime/samples/css/main.html index 70e77bd59b..dbbc5c325b 100644 --- a/test/runtime/samples/css/main.html +++ b/test/runtime/samples/css/main.html @@ -1,10 +1,6 @@ -

    control

    - - + +

    control

    + \ No newline at end of file diff --git a/test/runtime/samples/custom-method/main.html b/test/runtime/samples/custom-method/main.html index 0f1ad3387c..cd1f4ec454 100644 --- a/test/runtime/samples/custom-method/main.html +++ b/test/runtime/samples/custom-method/main.html @@ -1,21 +1,15 @@ - - -

    {counter}

    - + + + +

    {counter}

    \ No newline at end of file diff --git a/test/runtime/samples/deconflict-builtins/main.html b/test/runtime/samples/deconflict-builtins/main.html index 4da19ce0c4..7196d3eb5e 100644 --- a/test/runtime/samples/deconflict-builtins/main.html +++ b/test/runtime/samples/deconflict-builtins/main.html @@ -1,13 +1,7 @@ -{foo} - \ No newline at end of file + export let foo = get(); + + +{foo} \ No newline at end of file diff --git a/test/runtime/samples/deconflict-elements-indexes/main.html b/test/runtime/samples/deconflict-elements-indexes/main.html index ce6de6b086..c506848bdf 100644 --- a/test/runtime/samples/deconflict-elements-indexes/main.html +++ b/test/runtime/samples/deconflict-elements-indexes/main.html @@ -1,24 +1,15 @@ + +
    {#each tagList as tag, i} - + {tag} {/each} -
    - - \ No newline at end of file +
    \ No newline at end of file diff --git a/test/runtime/samples/deconflict-non-helpers/main.html b/test/runtime/samples/deconflict-non-helpers/main.html index d6ee1eaeae..a034fd58fb 100644 --- a/test/runtime/samples/deconflict-non-helpers/main.html +++ b/test/runtime/samples/deconflict-non-helpers/main.html @@ -1,17 +1,14 @@ -{compute} + +{compute()} + diff --git a/test/runtime/samples/deconflict-self/main.html b/test/runtime/samples/deconflict-self/main.html index a9ddc8ac69..30f524eb69 100644 --- a/test/runtime/samples/deconflict-self/main.html +++ b/test/runtime/samples/deconflict-self/main.html @@ -1,9 +1,5 @@ -
    - - export default { - components: { Main } - }; - \ No newline at end of file +
    \ No newline at end of file diff --git a/test/runtime/samples/deconflict-template-1/main.html b/test/runtime/samples/deconflict-template-1/main.html index 395d7b22b3..70fc1997bd 100644 --- a/test/runtime/samples/deconflict-template-1/main.html +++ b/test/runtime/samples/deconflict-template-1/main.html @@ -1,13 +1,7 @@ -{value} - + +{value} diff --git a/test/runtime/samples/deconflict-template-2/main.html b/test/runtime/samples/deconflict-template-2/main.html index 79f76724ed..0c2fae81de 100644 --- a/test/runtime/samples/deconflict-template-2/main.html +++ b/test/runtime/samples/deconflict-template-2/main.html @@ -1,15 +1,9 @@ -{value} - + +{value} diff --git a/test/runtime/samples/deconflict-vars/main.html b/test/runtime/samples/deconflict-vars/main.html index ed2cd6c4a9..72ab82f2c9 100644 --- a/test/runtime/samples/deconflict-vars/main.html +++ b/test/runtime/samples/deconflict-vars/main.html @@ -1,5 +1,3 @@ -

    {value}

    - + +

    {value}

    diff --git a/test/runtime/samples/default-data-function/main.html b/test/runtime/samples/default-data-function/main.html index 5225b6c3cd..57d2df771d 100644 --- a/test/runtime/samples/default-data-function/main.html +++ b/test/runtime/samples/default-data-function/main.html @@ -1,9 +1,5 @@ -

    Hello {name()}!

    - + +

    Hello {name()}!

    diff --git a/test/runtime/samples/default-data-override/main.html b/test/runtime/samples/default-data-override/main.html index afd9e23a73..a8d2fcfb7b 100644 --- a/test/runtime/samples/default-data-override/main.html +++ b/test/runtime/samples/default-data-override/main.html @@ -1,9 +1,5 @@ -

    Hello {name}!

    - + +

    Hello {name}!

    diff --git a/test/runtime/samples/default-data/main.html b/test/runtime/samples/default-data/main.html index afd9e23a73..a8d2fcfb7b 100644 --- a/test/runtime/samples/default-data/main.html +++ b/test/runtime/samples/default-data/main.html @@ -1,9 +1,5 @@ -

    Hello {name}!

    - + +

    Hello {name}!

    diff --git a/test/runtime/samples/destructuring/main.html b/test/runtime/samples/destructuring/main.html index 5d98aaae1e..956d3c0476 100644 --- a/test/runtime/samples/destructuring/main.html +++ b/test/runtime/samples/destructuring/main.html @@ -1 +1,7 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/test/runtime/samples/dev-accept-declarative-store/main.html b/test/runtime/samples/dev-accept-declarative-store/main.html index a20bbf0d65..34ae31d3b9 100644 --- a/test/runtime/samples/dev-accept-declarative-store/main.html +++ b/test/runtime/samples/dev-accept-declarative-store/main.html @@ -1,11 +1,14 @@ -

    {$foo}

    - + +

    {$foo}

    diff --git a/test/runtime/samples/dev-warning-bad-set-argument/_config.js b/test/runtime/samples/dev-warning-bad-set-argument/_config.js deleted file mode 100644 index 4625bc09e5..0000000000 --- a/test/runtime/samples/dev-warning-bad-set-argument/_config.js +++ /dev/null @@ -1,9 +0,0 @@ -export default { - compileOptions: { - dev: true - }, - - error(assert, error) { - assert.equal(error.message, `.set was called without an object of data key-values to update.`); - } -}; diff --git a/test/runtime/samples/dev-warning-bad-set-argument/main.html b/test/runtime/samples/dev-warning-bad-set-argument/main.html deleted file mode 100644 index cbaf739b10..0000000000 --- a/test/runtime/samples/dev-warning-bad-set-argument/main.html +++ /dev/null @@ -1,11 +0,0 @@ - \ 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 eb6e7d8e8e..4bf3b848c4 100644 --- a/test/runtime/samples/dev-warning-dynamic-components-misplaced/main.html +++ b/test/runtime/samples/dev-warning-dynamic-components-misplaced/main.html @@ -1,13 +1,10 @@ - - \ No newline at end of file + export let x; + export let Foo; + export let Bar; + + + \ No newline at end of file diff --git a/test/runtime/samples/dev-warning-helper/main.html b/test/runtime/samples/dev-warning-helper/main.html index 07d261a81d..56ddbf1c5d 100644 --- a/test/runtime/samples/dev-warning-helper/main.html +++ b/test/runtime/samples/dev-warning-helper/main.html @@ -1,11 +1,9 @@ -{foo(bar)} - \ No newline at end of file + export let bar; + + function foo(bar) { + return bar * 2; + } + + +{foo(bar)} \ No newline at end of file diff --git a/test/runtime/samples/dev-warning-missing-data-excludes-event/main.html b/test/runtime/samples/dev-warning-missing-data-excludes-event/main.html index ae30c7f05d..1c420cfcfa 100644 --- a/test/runtime/samples/dev-warning-missing-data-excludes-event/main.html +++ b/test/runtime/samples/dev-warning-missing-data-excludes-event/main.html @@ -1 +1 @@ - + diff --git a/test/runtime/samples/dev-warning-readonly-computed/main.html b/test/runtime/samples/dev-warning-readonly-computed/main.html index 199aac1a9c..3c395561e1 100644 --- a/test/runtime/samples/dev-warning-readonly-computed/main.html +++ b/test/runtime/samples/dev-warning-readonly-computed/main.html @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/test/runtime/samples/document-event/main.html b/test/runtime/samples/document-event/main.html index 4e6aa93512..104c6f4a9b 100644 --- a/test/runtime/samples/document-event/main.html +++ b/test/runtime/samples/document-event/main.html @@ -1,12 +1,9 @@ - - \ No newline at end of file + export let events = []; + + function log(event) { + events = this.get().events.concat(event); + } + + + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated-b/Green.html b/test/runtime/samples/dynamic-component-bindings-recreated-b/Green.html index cb1506bfdb..613d3ff52a 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated-b/Green.html +++ b/test/runtime/samples/dynamic-component-bindings-recreated-b/Green.html @@ -1,11 +1,5 @@ -

    green {foo}

    - \ No newline at end of file + export let foo = 'green'; + + +

    green {foo}

    \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated-b/Red.html b/test/runtime/samples/dynamic-component-bindings-recreated-b/Red.html index e86ea16182..b83dfe150e 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated-b/Red.html +++ b/test/runtime/samples/dynamic-component-bindings-recreated-b/Red.html @@ -1,11 +1,5 @@ -

    red {foo}

    - \ No newline at end of file + export let foo = 'red'; + + +

    red {foo}

    \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-bindings-recreated-b/main.html b/test/runtime/samples/dynamic-component-bindings-recreated-b/main.html index 41a54e8ee9..cdae60e835 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated-b/main.html +++ b/test/runtime/samples/dynamic-component-bindings-recreated-b/main.html @@ -1,16 +1,10 @@ -

    parent {foo}

    - - \ No newline at end of file + export let foo; + export let x; + + +

    parent {foo}

    + \ 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 a26c1cd080..c91906e5df 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated/main.html +++ b/test/runtime/samples/dynamic-component-bindings-recreated/main.html @@ -1,15 +1,9 @@ - - \ No newline at end of file + export let x; + export let 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 020855cb22..0df350a9f2 100644 --- a/test/runtime/samples/dynamic-component-bindings/main.html +++ b/test/runtime/samples/dynamic-component-bindings/main.html @@ -1,12 +1,10 @@ - - \ No newline at end of file + export let x; + export let y; + export let z; + + + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-events/Bar.html b/test/runtime/samples/dynamic-component-events/Bar.html index e6f79984c4..4168bebd91 100644 --- a/test/runtime/samples/dynamic-component-events/Bar.html +++ b/test/runtime/samples/dynamic-component-events/Bar.html @@ -1 +1,7 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-events/Foo.html b/test/runtime/samples/dynamic-component-events/Foo.html index 3601714a55..e5c8fa014b 100644 --- a/test/runtime/samples/dynamic-component-events/Foo.html +++ b/test/runtime/samples/dynamic-component-events/Foo.html @@ -1 +1,7 @@ - \ No newline at end of file + + + \ 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 5fa66b2c61..053d2c8099 100644 --- a/test/runtime/samples/dynamic-component-events/main.html +++ b/test/runtime/samples/dynamic-component-events/main.html @@ -1,12 +1,9 @@ - - \ No newline at end of file + export let x; + export let selected; + + + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-in-if/main.html b/test/runtime/samples/dynamic-component-in-if/main.html index 7b5b430ff9..8e4c51068e 100644 --- a/test/runtime/samples/dynamic-component-in-if/main.html +++ b/test/runtime/samples/dynamic-component-in-if/main.html @@ -1,18 +1,10 @@ -{#if x} - -{/if} - \ No newline at end of file + export let x = Foo; + + +{#if x} + +{/if} \ 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 0844346301..2a882c945f 100644 --- a/test/runtime/samples/dynamic-component-inside-element/main.html +++ b/test/runtime/samples/dynamic-component-inside-element/main.html @@ -1,14 +1,10 @@ -
    - -
    - \ No newline at end of file + export let x; + + +
    + +
    \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-nulled-out/main.html b/test/runtime/samples/dynamic-component-nulled-out/main.html index 6a1a348557..4b3544f505 100644 --- a/test/runtime/samples/dynamic-component-nulled-out/main.html +++ b/test/runtime/samples/dynamic-component-nulled-out/main.html @@ -1,11 +1,5 @@ - - - export default { - data() { - return { Foo }; - } - }; - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-ref/main.html b/test/runtime/samples/dynamic-component-ref/main.html index 1d54b17299..f93af2dffb 100644 --- a/test/runtime/samples/dynamic-component-ref/main.html +++ b/test/runtime/samples/dynamic-component-ref/main.html @@ -1,11 +1,9 @@ - - + + diff --git a/test/runtime/samples/dynamic-component-slot/main.html b/test/runtime/samples/dynamic-component-slot/main.html index e8b5c487ad..32f1ecce19 100644 --- a/test/runtime/samples/dynamic-component-slot/main.html +++ b/test/runtime/samples/dynamic-component-slot/main.html @@ -1,3 +1,15 @@ + +

    element

    @@ -20,26 +32,4 @@
    what goes up must come down
    -
    - - \ No newline at end of file +
    \ 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 1f8bd35f8c..efa9394d30 100644 --- a/test/runtime/samples/dynamic-component-update-existing-instance/main.html +++ b/test/runtime/samples/dynamic-component-update-existing-instance/main.html @@ -1,12 +1,8 @@ - - \ No newline at end of file + export let x; + + + \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component/main.html b/test/runtime/samples/dynamic-component/main.html index 1f8bd35f8c..efa9394d30 100644 --- a/test/runtime/samples/dynamic-component/main.html +++ b/test/runtime/samples/dynamic-component/main.html @@ -1,12 +1,8 @@ - - \ No newline at end of file + export let x; + + + \ No newline at end of file diff --git a/test/runtime/samples/each-block-array-literal/main.html b/test/runtime/samples/each-block-array-literal/main.html index f58a2fa99b..ade8430bcc 100644 --- a/test/runtime/samples/each-block-array-literal/main.html +++ b/test/runtime/samples/each-block-array-literal/main.html @@ -1,11 +1,7 @@ -{#each ['racoon', 'eagle'] as animal} - -{/each} - + +{#each ['racoon', 'eagle'] as animal} + +{/each} diff --git a/test/runtime/samples/each-block-containing-component-in-if/main.html b/test/runtime/samples/each-block-containing-component-in-if/main.html index cf81af277d..16f042a277 100644 --- a/test/runtime/samples/each-block-containing-component-in-if/main.html +++ b/test/runtime/samples/each-block-containing-component-in-if/main.html @@ -1,13 +1,10 @@ -
    - -
    - \ No newline at end of file + export let show; + export let fields; + + +
    + +
    \ No newline at end of file diff --git a/test/runtime/samples/each-block-containing-if/main.html b/test/runtime/samples/each-block-containing-if/main.html index 72fbdc576e..83aaf35c49 100644 --- a/test/runtime/samples/each-block-containing-if/main.html +++ b/test/runtime/samples/each-block-containing-if/main.html @@ -1,3 +1,18 @@ + +
      {#each items as item} {#if filter(item, currentFilter)} @@ -5,24 +20,3 @@ {/if} {/each}
    - - diff --git a/test/runtime/samples/each-block-else-mount-or-intro/main.html b/test/runtime/samples/each-block-else-mount-or-intro/main.html index 4604ecd788..949eb9b096 100644 --- a/test/runtime/samples/each-block-else-mount-or-intro/main.html +++ b/test/runtime/samples/each-block-else-mount-or-intro/main.html @@ -1,9 +1,11 @@ + + {#each items as item} {:else} No items. {/each} - - diff --git a/test/runtime/samples/each-block-empty-outro/main.html b/test/runtime/samples/each-block-empty-outro/main.html index b5d1b95260..325cbbcf45 100644 --- a/test/runtime/samples/each-block-empty-outro/main.html +++ b/test/runtime/samples/each-block-empty-outro/main.html @@ -1,3 +1,10 @@ + + {#if visible}
    {#each empty as thing} @@ -6,12 +13,4 @@

    text

    -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/each-block-keyed-unshift/main.html b/test/runtime/samples/each-block-keyed-unshift/main.html index 885e12aeb8..5af62d4e08 100644 --- a/test/runtime/samples/each-block-keyed-unshift/main.html +++ b/test/runtime/samples/each-block-keyed-unshift/main.html @@ -1,13 +1,9 @@ -{#each titles as title (title.name)} - -{/each} - \ No newline at end of file + export let titles; + + +{#each titles as title (title.name)} + +{/each} \ No newline at end of file diff --git a/test/runtime/samples/element-source-location/main.html b/test/runtime/samples/element-source-location/main.html index 2231e19439..ca70895728 100644 --- a/test/runtime/samples/element-source-location/main.html +++ b/test/runtime/samples/element-source-location/main.html @@ -1,10 +1,6 @@ -

    this is a header

    - - \ No newline at end of file + import Foo from './Foo.html'; + + +

    this is a header

    + \ No newline at end of file diff --git a/test/runtime/samples/escape-template-literals/main.html b/test/runtime/samples/escape-template-literals/main.html index 69dca26c65..bfd016de6b 100644 --- a/test/runtime/samples/escape-template-literals/main.html +++ b/test/runtime/samples/escape-template-literals/main.html @@ -1,8 +1,7 @@ -`${foo}\n` -
    foo
    - - + +`${foo}\n` +
    foo
    + diff --git a/test/runtime/samples/event-handler-console-log/main.html b/test/runtime/samples/event-handler-console-log/main.html index 3500b96373..509a4baa34 100644 --- a/test/runtime/samples/event-handler-console-log/main.html +++ b/test/runtime/samples/event-handler-console-log/main.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/event-handler-custom-context/main.html b/test/runtime/samples/event-handler-custom-context/main.html index dd16947f29..dae4f10807 100644 --- a/test/runtime/samples/event-handler-custom-context/main.html +++ b/test/runtime/samples/event-handler-custom-context/main.html @@ -1,28 +1,20 @@ - - + + diff --git a/test/runtime/samples/event-handler-custom-each-destructured/main.html b/test/runtime/samples/event-handler-custom-each-destructured/main.html index 3b75c187f4..080f146b6b 100644 --- a/test/runtime/samples/event-handler-custom-each-destructured/main.html +++ b/test/runtime/samples/event-handler-custom-each-destructured/main.html @@ -1,36 +1,30 @@ + + {#each items as [item0, item1]} - {/each}

    first: {first}

    second: {second}

    - - diff --git a/test/runtime/samples/event-handler-custom-each/main.html b/test/runtime/samples/event-handler-custom-each/main.html index be92ec4d52..c67d3a46d7 100644 --- a/test/runtime/samples/event-handler-custom-each/main.html +++ b/test/runtime/samples/event-handler-custom-each/main.html @@ -1,34 +1,28 @@ -{#each items as item} - -{/each} - -

    fromDom: {fromDom}

    -

    fromState: {fromState}

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

    fromDom: {fromDom}

    +

    fromState: {fromState}

    diff --git a/test/runtime/samples/event-handler-custom-node-context/main.html b/test/runtime/samples/event-handler-custom-node-context/main.html index 971cda8a8e..452e112c97 100644 --- a/test/runtime/samples/event-handler-custom-node-context/main.html +++ b/test/runtime/samples/event-handler-custom-node-context/main.html @@ -1,25 +1,19 @@ - - + + diff --git a/test/runtime/samples/event-handler-custom-this/main.html b/test/runtime/samples/event-handler-custom-this/main.html index 68140628e3..813d63283a 100644 --- a/test/runtime/samples/event-handler-custom-this/main.html +++ b/test/runtime/samples/event-handler-custom-this/main.html @@ -1,23 +1,19 @@ - - \ No newline at end of file + }; + } + + + \ No newline at end of file diff --git a/test/runtime/samples/event-handler-custom/main.html b/test/runtime/samples/event-handler-custom/main.html index 53232e9b74..97d216eef0 100644 --- a/test/runtime/samples/event-handler-custom/main.html +++ b/test/runtime/samples/event-handler-custom/main.html @@ -1,29 +1,23 @@ - - + + diff --git a/test/runtime/samples/event-handler-destroy/_config.js b/test/runtime/samples/event-handler-destroy/_config.js deleted file mode 100644 index 417f0da041..0000000000 --- a/test/runtime/samples/event-handler-destroy/_config.js +++ /dev/null @@ -1,20 +0,0 @@ -export default { - html: ` - - `, - - test ( assert, component, target, window ) { - const button = target.querySelector( 'button' ); - const event = new window.MouseEvent( 'click' ); - - let destroyed = false; - component.on( 'destroy', () => { - destroyed = true; - }); - - button.dispatchEvent( event ); - assert.htmlEqual( target.innerHTML, `` ); - - assert.ok( destroyed ); - } -}; diff --git a/test/runtime/samples/event-handler-destroy/main.html b/test/runtime/samples/event-handler-destroy/main.html deleted file mode 100644 index 01b2bb8221..0000000000 --- a/test/runtime/samples/event-handler-destroy/main.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/event-handler-each-context/main.html b/test/runtime/samples/event-handler-each-context/main.html index 830bbce47e..3b22ec529c 100644 --- a/test/runtime/samples/event-handler-each-context/main.html +++ b/test/runtime/samples/event-handler-each-context/main.html @@ -1,5 +1,5 @@ {#each items as item} - + {/each}

    foo: {foo}

    \ No newline at end of file diff --git a/test/runtime/samples/event-handler-each-deconflicted/main.html b/test/runtime/samples/event-handler-each-deconflicted/main.html index e704a7eac0..165e535e95 100644 --- a/test/runtime/samples/event-handler-each-deconflicted/main.html +++ b/test/runtime/samples/event-handler-each-deconflicted/main.html @@ -1,9 +1,9 @@ {#each foo as f} - + {/each} {#each bar as b} - + {/each}

    clicked: {clicked}

    \ No newline at end of file diff --git a/test/runtime/samples/event-handler-each-this/main.html b/test/runtime/samples/event-handler-each-this/main.html index 9e5ea88a50..d722ffc904 100644 --- a/test/runtime/samples/event-handler-each-this/main.html +++ b/test/runtime/samples/event-handler-each-this/main.html @@ -1,3 +1,9 @@ + + {#each items as item} - + {/each} \ No newline at end of file diff --git a/test/runtime/samples/event-handler-each/main.html b/test/runtime/samples/event-handler-each/main.html index bd43d3bec6..3d1c5dcfd8 100644 --- a/test/runtime/samples/event-handler-each/main.html +++ b/test/runtime/samples/event-handler-each/main.html @@ -1,5 +1,5 @@ {#each items as item} - + {/each}

    selected: {selected}

    \ No newline at end of file diff --git a/test/runtime/samples/event-handler-event-methods/main.html b/test/runtime/samples/event-handler-event-methods/main.html index 0aa130e449..ad57976b8a 100644 --- a/test/runtime/samples/event-handler-event-methods/main.html +++ b/test/runtime/samples/event-handler-event-methods/main.html @@ -1,18 +1,12 @@ -
    + + +
    -
    - +
    +
    - - diff --git a/test/runtime/samples/event-handler-hoisted/main.html b/test/runtime/samples/event-handler-hoisted/main.html index 5e9f8cd71d..fa0012d191 100644 --- a/test/runtime/samples/event-handler-hoisted/main.html +++ b/test/runtime/samples/event-handler-hoisted/main.html @@ -1,13 +1,14 @@ -{#each foo as bar} - -{/each} - \ No newline at end of file + export let snapshot; + + export let foo; + export let a; + + export function baz(a) { + snapshot = a; + } + + +{#each foo as bar} + +{/each} \ No newline at end of file diff --git a/test/runtime/samples/event-handler-removal/main.html b/test/runtime/samples/event-handler-removal/main.html index 862af691a9..4589640ec6 100644 --- a/test/runtime/samples/event-handler-removal/main.html +++ b/test/runtime/samples/event-handler-removal/main.html @@ -1,11 +1,9 @@ -{#if visible} - -{/if} - + +{#if visible} + +{/if} diff --git a/test/runtime/samples/event-handler-sanitize/main.html b/test/runtime/samples/event-handler-sanitize/main.html index 05c80365f2..7a5f39aa58 100644 --- a/test/runtime/samples/event-handler-sanitize/main.html +++ b/test/runtime/samples/event-handler-sanitize/main.html @@ -1,4 +1,4 @@ -
    toggle
    +
    toggle
    {#if visible}

    hello!

    diff --git a/test/runtime/samples/event-handler-shorthand-component/Widget.html b/test/runtime/samples/event-handler-shorthand-component/Widget.html index 47e1f95a2f..cde03db92b 100644 --- a/test/runtime/samples/event-handler-shorthand-component/Widget.html +++ b/test/runtime/samples/event-handler-shorthand-component/Widget.html @@ -1 +1,7 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/test/runtime/samples/event-handler-shorthand-component/main.html b/test/runtime/samples/event-handler-shorthand-component/main.html index 5eb9bbb3eb..26586d3fd3 100644 --- a/test/runtime/samples/event-handler-shorthand-component/main.html +++ b/test/runtime/samples/event-handler-shorthand-component/main.html @@ -1,11 +1,5 @@ - - - export default { - components: { - Widget - } - }; - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/event-handler-shorthand-dynamic-component/Widget.html b/test/runtime/samples/event-handler-shorthand-dynamic-component/Widget.html index 47e1f95a2f..cde03db92b 100644 --- a/test/runtime/samples/event-handler-shorthand-dynamic-component/Widget.html +++ b/test/runtime/samples/event-handler-shorthand-dynamic-component/Widget.html @@ -1 +1,7 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/test/runtime/samples/event-handler-shorthand-dynamic-component/main.html b/test/runtime/samples/event-handler-shorthand-dynamic-component/main.html index 388a087608..f38a4d30bb 100644 --- a/test/runtime/samples/event-handler-shorthand-dynamic-component/main.html +++ b/test/runtime/samples/event-handler-shorthand-dynamic-component/main.html @@ -1,9 +1,5 @@ - - + + diff --git a/test/runtime/samples/event-handler-shorthand/_config.js b/test/runtime/samples/event-handler-shorthand/_config.js deleted file mode 100644 index ceded0bf08..0000000000 --- a/test/runtime/samples/event-handler-shorthand/_config.js +++ /dev/null @@ -1,13 +0,0 @@ -export default { - html: ` - - `, - - test (assert, component, target, window) { - const button = target.querySelector('button'); - const event = new window.MouseEvent('click'); - - button.dispatchEvent(event); - assert.ok(component.clicked); - } -}; diff --git a/test/runtime/samples/event-handler-shorthand/main.html b/test/runtime/samples/event-handler-shorthand/main.html deleted file mode 100644 index 5b283cbb59..0000000000 --- a/test/runtime/samples/event-handler-shorthand/main.html +++ /dev/null @@ -1,11 +0,0 @@ - - - \ No newline at end of file diff --git a/test/runtime/samples/event-handler-this-methods/main.html b/test/runtime/samples/event-handler-this-methods/main.html index a9f8282c9e..f97c29369d 100644 --- a/test/runtime/samples/event-handler-this-methods/main.html +++ b/test/runtime/samples/event-handler-this-methods/main.html @@ -1,2 +1,2 @@ - + diff --git a/test/runtime/samples/event-handler/main.html b/test/runtime/samples/event-handler/main.html index 731fe32e75..8dcaf1b701 100644 --- a/test/runtime/samples/event-handler/main.html +++ b/test/runtime/samples/event-handler/main.html @@ -1,4 +1,4 @@ - + {#if visible}

    hello!

    diff --git a/test/runtime/samples/flush-before-bindings/Nested.html b/test/runtime/samples/flush-before-bindings/Nested.html index a722863cdd..a632b585a8 100644 --- a/test/runtime/samples/flush-before-bindings/Nested.html +++ b/test/runtime/samples/flush-before-bindings/Nested.html @@ -1,30 +1,18 @@ -{#each things as thing} - -

    {thing} ({visibilityMap[thing]})

    -
    -{/each} - - components: { - Visibility - } - }; - \ No newline at end of file +{#each things as thing} + +

    {thing} ({visibilityMap[thing]})

    +
    +{/each} \ No newline at end of file diff --git a/test/runtime/samples/flush-before-bindings/Visibility.html b/test/runtime/samples/flush-before-bindings/Visibility.html index 9ecda223f2..98ce02f2b8 100644 --- a/test/runtime/samples/flush-before-bindings/Visibility.html +++ b/test/runtime/samples/flush-before-bindings/Visibility.html @@ -1,11 +1,13 @@ + +
    - - diff --git a/test/runtime/samples/flush-before-bindings/main.html b/test/runtime/samples/flush-before-bindings/main.html index e95670f85d..a7afa99462 100644 --- a/test/runtime/samples/flush-before-bindings/main.html +++ b/test/runtime/samples/flush-before-bindings/main.html @@ -1,28 +1,18 @@ - - - if (changed.visibleThings) { - this.snapshots.push(current.visibleThings); - } - } - }; - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/get-state/main.html b/test/runtime/samples/get-state/main.html index e67adaf72e..1926f65e02 100644 --- a/test/runtime/samples/get-state/main.html +++ b/test/runtime/samples/get-state/main.html @@ -1,12 +1,8 @@ diff --git a/test/runtime/samples/globals-shadowed-by-data/main.html b/test/runtime/samples/globals-shadowed-by-data/main.html index 7e3b408331..4b439b55aa 100644 --- a/test/runtime/samples/globals-shadowed-by-data/main.html +++ b/test/runtime/samples/globals-shadowed-by-data/main.html @@ -1,15 +1,10 @@ -{Math.min(x, 5)} - + +{Math.min(x, 5)} diff --git a/test/runtime/samples/globals-shadowed-by-helpers/main.html b/test/runtime/samples/globals-shadowed-by-helpers/main.html index 98b8f19187..8c360f9114 100644 --- a/test/runtime/samples/globals-shadowed-by-helpers/main.html +++ b/test/runtime/samples/globals-shadowed-by-helpers/main.html @@ -1,13 +1,11 @@ -{Math.min(x, 5)} - + +{Math.min(x, 5)} diff --git a/test/runtime/samples/helpers-not-call-expression/main.html b/test/runtime/samples/helpers-not-call-expression/main.html index c63838b138..6f69090a58 100644 --- a/test/runtime/samples/helpers-not-call-expression/main.html +++ b/test/runtime/samples/helpers-not-call-expression/main.html @@ -1,15 +1,7 @@ -

    {numbers.map(square)}

    - + +

    {numbers.map(square)}

    diff --git a/test/runtime/samples/helpers/main.html b/test/runtime/samples/helpers/main.html index 497a1d119e..c62e3a8fba 100644 --- a/test/runtime/samples/helpers/main.html +++ b/test/runtime/samples/helpers/main.html @@ -1,14 +1,10 @@ -

    {reverse('backwards')}

    - + +

    {reverse('backwards')}

    diff --git a/test/runtime/samples/if-block-component-without-outro/main.html b/test/runtime/samples/if-block-component-without-outro/main.html index f043b3644a..45498b97a1 100644 --- a/test/runtime/samples/if-block-component-without-outro/main.html +++ b/test/runtime/samples/if-block-component-without-outro/main.html @@ -1,11 +1,9 @@ + + {#if foo} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/if-block-else-partial-outro/main.html b/test/runtime/samples/if-block-else-partial-outro/main.html index 9cb4408b73..90c253c730 100644 --- a/test/runtime/samples/if-block-else-partial-outro/main.html +++ b/test/runtime/samples/if-block-else-partial-outro/main.html @@ -1,20 +1,12 @@ + + {#if y} {:else} {x} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/if-block-no-outro-else-with-outro/main.html b/test/runtime/samples/if-block-no-outro-else-with-outro/main.html index 5789f2386e..d881addce0 100644 --- a/test/runtime/samples/if-block-no-outro-else-with-outro/main.html +++ b/test/runtime/samples/if-block-no-outro-else-with-outro/main.html @@ -1,21 +1,14 @@ + + {#if foo}

    foo

    {:else}

    {x}

    -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/if-block-outro-nested-else/main.html b/test/runtime/samples/if-block-outro-nested-else/main.html index 02e000b3c3..c10f861a6c 100644 --- a/test/runtime/samples/if-block-outro-nested-else/main.html +++ b/test/runtime/samples/if-block-outro-nested-else/main.html @@ -1,3 +1,9 @@ + + {#if foo} {#if false} @@ -5,12 +11,3 @@ {/if} {/if} - - diff --git a/test/runtime/samples/if-block-outro-unique-select-block-type/main.html b/test/runtime/samples/if-block-outro-unique-select-block-type/main.html index a27aba9d77..77b3a6dfe3 100644 --- a/test/runtime/samples/if-block-outro-unique-select-block-type/main.html +++ b/test/runtime/samples/if-block-outro-unique-select-block-type/main.html @@ -1,3 +1,9 @@ + + {#if foo} {:else} @@ -9,12 +15,3 @@ {:else}
    {/if} - - diff --git a/test/runtime/samples/if-block-widget/main.html b/test/runtime/samples/if-block-widget/main.html index cd73d020a6..12996bbcd4 100644 --- a/test/runtime/samples/if-block-widget/main.html +++ b/test/runtime/samples/if-block-widget/main.html @@ -1,14 +1,11 @@ + + before {#if visible} {/if} after - diff --git a/test/runtime/samples/ignore-unchanged-attribute-compound/main.html b/test/runtime/samples/ignore-unchanged-attribute-compound/main.html index a99f94147e..08dcebbbd3 100644 --- a/test/runtime/samples/ignore-unchanged-attribute-compound/main.html +++ b/test/runtime/samples/ignore-unchanged-attribute-compound/main.html @@ -1,15 +1,14 @@ -

    {x}

    -

    - + +

    {x}

    +

    diff --git a/test/runtime/samples/ignore-unchanged-attribute/main.html b/test/runtime/samples/ignore-unchanged-attribute/main.html index 463e21735d..5f657cb6b3 100644 --- a/test/runtime/samples/ignore-unchanged-attribute/main.html +++ b/test/runtime/samples/ignore-unchanged-attribute/main.html @@ -1,15 +1,14 @@ -

    {x}

    -

    - + +

    {x}

    +

    diff --git a/test/runtime/samples/ignore-unchanged-raw/main.html b/test/runtime/samples/ignore-unchanged-raw/main.html index c28e7b537e..ed2e3b2b5f 100644 --- a/test/runtime/samples/ignore-unchanged-raw/main.html +++ b/test/runtime/samples/ignore-unchanged-raw/main.html @@ -1,15 +1,14 @@ -

    {x}

    -

    {@html myHelper(y)}

    - + +

    {x}

    +

    {@html myHelper(y)}

    diff --git a/test/runtime/samples/ignore-unchanged-tag/main.html b/test/runtime/samples/ignore-unchanged-tag/main.html index e2a7899122..6c748f5643 100644 --- a/test/runtime/samples/ignore-unchanged-tag/main.html +++ b/test/runtime/samples/ignore-unchanged-tag/main.html @@ -1,15 +1,14 @@ -

    {x}

    -

    {myHelper(y)}

    - + +

    {x}

    +

    {myHelper(y)}

    diff --git a/test/runtime/samples/immutable-mutable/Nested.html b/test/runtime/samples/immutable-mutable/Nested.html index 1d623779eb..b68af94b89 100644 --- a/test/runtime/samples/immutable-mutable/Nested.html +++ b/test/runtime/samples/immutable-mutable/Nested.html @@ -1,13 +1,6 @@ -

    Called {count} times.

    - \ No newline at end of file + export let count = 0; + export let foo = { bar: 'baz' }; + + +

    Called {count} times.

    \ No newline at end of file diff --git a/test/runtime/samples/immutable-mutable/main.html b/test/runtime/samples/immutable-mutable/main.html index 4e36143361..f036cbdfc3 100644 --- a/test/runtime/samples/immutable-mutable/main.html +++ b/test/runtime/samples/immutable-mutable/main.html @@ -1,13 +1,9 @@ -
    - -
    - + +
    + +
    diff --git a/test/runtime/samples/immutable-nested/Nested.html b/test/runtime/samples/immutable-nested/Nested.html index 1f3d808d63..b68af94b89 100644 --- a/test/runtime/samples/immutable-nested/Nested.html +++ b/test/runtime/samples/immutable-nested/Nested.html @@ -1,12 +1,6 @@ -

    Called {count} times.

    - \ No newline at end of file + export let count = 0; + export let foo = { bar: 'baz' }; + + +

    Called {count} times.

    \ No newline at end of file diff --git a/test/runtime/samples/immutable-nested/main.html b/test/runtime/samples/immutable-nested/main.html index 4e36143361..f036cbdfc3 100644 --- a/test/runtime/samples/immutable-nested/main.html +++ b/test/runtime/samples/immutable-nested/main.html @@ -1,13 +1,9 @@ -
    - -
    - + +
    + +
    diff --git a/test/runtime/samples/immutable-root/main.html b/test/runtime/samples/immutable-root/main.html index b54f41743c..85c31ae989 100644 --- a/test/runtime/samples/immutable-root/main.html +++ b/test/runtime/samples/immutable-root/main.html @@ -1,14 +1,8 @@ + +

    Called {count} times.

    -
    - - \ No newline at end of file +
    \ No newline at end of file diff --git a/test/runtime/samples/imported-renamed-components/main.html b/test/runtime/samples/imported-renamed-components/main.html index a976830378..9c6efdb230 100644 --- a/test/runtime/samples/imported-renamed-components/main.html +++ b/test/runtime/samples/imported-renamed-components/main.html @@ -1,10 +1,9 @@ - - + + diff --git a/test/runtime/samples/initial-state-assign/main.html b/test/runtime/samples/initial-state-assign/main.html index be3a613784..258b12fec9 100644 --- a/test/runtime/samples/initial-state-assign/main.html +++ b/test/runtime/samples/initial-state-assign/main.html @@ -1,10 +1,7 @@ -{JSON.stringify(foo)} -{JSON.stringify(bar)} - + +{JSON.stringify(foo)} +{JSON.stringify(bar)} diff --git a/test/runtime/samples/lifecycle-events/main.html b/test/runtime/samples/lifecycle-events/main.html index b39ce292d6..075aa7762d 100644 --- a/test/runtime/samples/lifecycle-events/main.html +++ b/test/runtime/samples/lifecycle-events/main.html @@ -1,13 +1,15 @@ -
    - \ No newline at end of file + import { ondestroy, onmount } from 'svelte'; + + export let events; + + onmount(() => { + events = ['create']; + }); + + ondestroy(() => { + events.push('destroy'); + }); + + +
    \ No newline at end of file diff --git a/test/runtime/samples/names-deconflicted/main.html b/test/runtime/samples/names-deconflicted/main.html index 282c438267..f2c47a7718 100644 --- a/test/runtime/samples/names-deconflicted/main.html +++ b/test/runtime/samples/names-deconflicted/main.html @@ -1,21 +1,13 @@ -{#each widgets as widget, i} - -{/each} - + +{#each widgets as widget, i} + +{/each} diff --git a/test/runtime/samples/nested-transition-detach-each/main.html b/test/runtime/samples/nested-transition-detach-each/main.html index c81fc3eb78..6f04d3fb6f 100644 --- a/test/runtime/samples/nested-transition-detach-each/main.html +++ b/test/runtime/samples/nested-transition-detach-each/main.html @@ -1,3 +1,16 @@ + + {#if visible} {#each rows as row}
    @@ -6,17 +19,4 @@ {/each}
    {/each} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/nested-transition-detach-if-false/Folder.html b/test/runtime/samples/nested-transition-detach-if-false/Folder.html index cd3448a3f2..f0acf1533e 100644 --- a/test/runtime/samples/nested-transition-detach-if-false/Folder.html +++ b/test/runtime/samples/nested-transition-detach-if-false/Folder.html @@ -1,3 +1,25 @@ + +
  • {dir} @@ -12,33 +34,4 @@ {/each} {/if} -
  • - - \ No newline at end of file + \ No newline at end of file diff --git a/test/runtime/samples/nested-transition-detach-if-false/main.html b/test/runtime/samples/nested-transition-detach-if-false/main.html index cf14773c9c..41429fca38 100644 --- a/test/runtime/samples/nested-transition-detach-if-false/main.html +++ b/test/runtime/samples/nested-transition-detach-if-false/main.html @@ -1,9 +1,7 @@ - - \ No newline at end of file + export let folder; + + import Folder from './Folder.html'; + + + \ No newline at end of file diff --git a/test/runtime/samples/nested-transition-if-block-not-remounted/main.html b/test/runtime/samples/nested-transition-if-block-not-remounted/main.html index ad8b2454a8..373d3d0485 100644 --- a/test/runtime/samples/nested-transition-if-block-not-remounted/main.html +++ b/test/runtime/samples/nested-transition-if-block-not-remounted/main.html @@ -1,14 +1,12 @@ + +
    {#if x} - + x {/if} -
    - - \ No newline at end of file +
    \ No newline at end of file diff --git a/test/runtime/samples/object-rest/_config.js b/test/runtime/samples/object-rest/_config.js deleted file mode 100644 index 7a60f0d563..0000000000 --- a/test/runtime/samples/object-rest/_config.js +++ /dev/null @@ -1,27 +0,0 @@ -export default { - skip: +/v(\d+)/.exec(process.version)[1] < 8, - - html: ` -
    {"wanted":2}
    - `, - - test(assert, component, target) { - component.set({ - unwanted: 3, - wanted: 4 - }); - - assert.htmlEqual(target.innerHTML, ` -
    {"wanted":4}
    - `); - - component.set({ - unwanted: 5, - wanted: 6 - }); - - assert.htmlEqual(target.innerHTML, ` -
    {"wanted":6}
    - `); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/object-rest/main.html b/test/runtime/samples/object-rest/main.html deleted file mode 100644 index e66a89291e..0000000000 --- a/test/runtime/samples/object-rest/main.html +++ /dev/null @@ -1,18 +0,0 @@ -
    {JSON.stringify(props)}
    - \ No newline at end of file diff --git a/test/runtime/samples/observe-binding-ignores-unchanged/main.html b/test/runtime/samples/observe-binding-ignores-unchanged/main.html index 2492f1830e..0ef65dd4b5 100644 --- a/test/runtime/samples/observe-binding-ignores-unchanged/main.html +++ b/test/runtime/samples/observe-binding-ignores-unchanged/main.html @@ -1,21 +1,14 @@ - -

    field1: {myObject.field1}

    -

    field2: {myObject.field2}

    - \ No newline at end of file + + + +

    field1: {myObject.field1}

    +

    field2: {myObject.field2}

    \ No newline at end of file diff --git a/test/runtime/samples/observe-component-ignores-irrelevant-changes/main.html b/test/runtime/samples/observe-component-ignores-irrelevant-changes/main.html index 2063d8c1b0..4f04a14b89 100644 --- a/test/runtime/samples/observe-component-ignores-irrelevant-changes/main.html +++ b/test/runtime/samples/observe-component-ignores-irrelevant-changes/main.html @@ -1,14 +1,10 @@ - - + + diff --git a/test/runtime/samples/observe-deferred/main.html b/test/runtime/samples/observe-deferred/main.html index 9765e91159..ab80973fb2 100644 --- a/test/runtime/samples/observe-deferred/main.html +++ b/test/runtime/samples/observe-deferred/main.html @@ -1,14 +1,15 @@ -

    {value}

    -

    - \ No newline at end of file + import { onupdate } from 'svelte'; + + export let a; + export let b; + + export let value; + + onupdate(() => { + b.textContent = a.textContent; + }); + + +

    {value}

    +

    \ No newline at end of file diff --git a/test/runtime/samples/oncreate-async-arrow-block/main.html b/test/runtime/samples/oncreate-async-arrow-block/main.html index 6a3f4c48f1..4b075b09a4 100644 --- a/test/runtime/samples/oncreate-async-arrow-block/main.html +++ b/test/runtime/samples/oncreate-async-arrow-block/main.html @@ -1,7 +1,7 @@ diff --git a/test/runtime/samples/oncreate-async-arrow/main.html b/test/runtime/samples/oncreate-async-arrow/main.html index b37145dd17..67ec75056a 100644 --- a/test/runtime/samples/oncreate-async-arrow/main.html +++ b/test/runtime/samples/oncreate-async-arrow/main.html @@ -1,5 +1,5 @@ diff --git a/test/runtime/samples/oncreate-async/main.html b/test/runtime/samples/oncreate-async/main.html index b8b74050b2..4b075b09a4 100644 --- a/test/runtime/samples/oncreate-async/main.html +++ b/test/runtime/samples/oncreate-async/main.html @@ -1,7 +1,7 @@ diff --git a/test/runtime/samples/oncreate-sibling-order/Nested.html b/test/runtime/samples/oncreate-sibling-order/Nested.html index 6bf82772a0..958be20e68 100644 --- a/test/runtime/samples/oncreate-sibling-order/Nested.html +++ b/test/runtime/samples/oncreate-sibling-order/Nested.html @@ -1,11 +1,13 @@ -

    {name}

    - \ No newline at end of file + export let name; + + onmount(() => { + result.push(`oncreate ${name}`); + }); + + +

    {name}

    \ No newline at end of file diff --git a/test/runtime/samples/oncreate-sibling-order/main.html b/test/runtime/samples/oncreate-sibling-order/main.html index ba594477f0..e4218aa4b4 100644 --- a/test/runtime/samples/oncreate-sibling-order/main.html +++ b/test/runtime/samples/oncreate-sibling-order/main.html @@ -1,12 +1,6 @@ - - - - export default { - components: { - Nested - } - }; - \ No newline at end of file + + \ No newline at end of file diff --git a/test/runtime/samples/ondestroy-before-cleanup/Top.html b/test/runtime/samples/ondestroy-before-cleanup/Top.html index 1e936b48fd..1133a6eacf 100644 --- a/test/runtime/samples/ondestroy-before-cleanup/Top.html +++ b/test/runtime/samples/ondestroy-before-cleanup/Top.html @@ -1,9 +1,12 @@ -
    - + +
    diff --git a/test/runtime/samples/ondestroy-before-cleanup/main.html b/test/runtime/samples/ondestroy-before-cleanup/main.html index cce0356f6a..e7758c98f6 100644 --- a/test/runtime/samples/ondestroy-before-cleanup/main.html +++ b/test/runtime/samples/ondestroy-before-cleanup/main.html @@ -1,18 +1,11 @@ -{#if visible} - -{/if} - \ No newline at end of file + export let visible = true; + + +{#if visible} + +{/if} \ No newline at end of file diff --git a/test/runtime/samples/onrender-chain/Item.html b/test/runtime/samples/onrender-chain/Item.html index ca0f489b57..34ccd9c33e 100644 --- a/test/runtime/samples/onrender-chain/Item.html +++ b/test/runtime/samples/onrender-chain/Item.html @@ -1,14 +1,12 @@ -{foo} - \ No newline at end of file + import { onprops } from 'svelte'; + + export let item; + export let foo = 'XX'; + + onprops(() => { + foo = item; + }); + + +{foo} \ No newline at end of file diff --git a/test/runtime/samples/onrender-chain/List.html b/test/runtime/samples/onrender-chain/List.html index 513c62b2e6..f57c179973 100644 --- a/test/runtime/samples/onrender-chain/List.html +++ b/test/runtime/samples/onrender-chain/List.html @@ -1,25 +1,13 @@ -{#each items as item} - -{/each} - + +{#each items as item} + +{/each} diff --git a/test/runtime/samples/onrender-chain/main.html b/test/runtime/samples/onrender-chain/main.html index 90dc4c94d9..8156f7e8a5 100644 --- a/test/runtime/samples/onrender-chain/main.html +++ b/test/runtime/samples/onrender-chain/main.html @@ -1,11 +1,7 @@ - - + + diff --git a/test/runtime/samples/onrender-fires-when-ready-nested/ParentWidget.html b/test/runtime/samples/onrender-fires-when-ready-nested/ParentWidget.html index 5774edea19..e1dc10c773 100644 --- a/test/runtime/samples/onrender-fires-when-ready-nested/ParentWidget.html +++ b/test/runtime/samples/onrender-fires-when-ready-nested/ParentWidget.html @@ -1,11 +1,7 @@ -{#if foo}{/if} - + +{#if foo}{/if} diff --git a/test/runtime/samples/onrender-fires-when-ready-nested/Widget.html b/test/runtime/samples/onrender-fires-when-ready-nested/Widget.html index 4bbcb98f33..b6cb8c8a55 100644 --- a/test/runtime/samples/onrender-fires-when-ready-nested/Widget.html +++ b/test/runtime/samples/onrender-fires-when-ready-nested/Widget.html @@ -1,9 +1,13 @@ -

    {inDocument}

    - + +

    {inDocument}

    diff --git a/test/runtime/samples/onrender-fires-when-ready-nested/main.html b/test/runtime/samples/onrender-fires-when-ready-nested/main.html index 6ba25d0a68..910f63e086 100644 --- a/test/runtime/samples/onrender-fires-when-ready-nested/main.html +++ b/test/runtime/samples/onrender-fires-when-ready-nested/main.html @@ -1,16 +1,9 @@ -
    - - -
    - + +
    + + +
    diff --git a/test/runtime/samples/onrender-fires-when-ready/Widget.html b/test/runtime/samples/onrender-fires-when-ready/Widget.html index 4bbcb98f33..b6cb8c8a55 100644 --- a/test/runtime/samples/onrender-fires-when-ready/Widget.html +++ b/test/runtime/samples/onrender-fires-when-ready/Widget.html @@ -1,9 +1,13 @@ -

    {inDocument}

    - + +

    {inDocument}

    diff --git a/test/runtime/samples/onrender-fires-when-ready/main.html b/test/runtime/samples/onrender-fires-when-ready/main.html index 49bfc412d0..f2760ecff1 100644 --- a/test/runtime/samples/onrender-fires-when-ready/main.html +++ b/test/runtime/samples/onrender-fires-when-ready/main.html @@ -1,3 +1,9 @@ + +
    @@ -5,13 +11,3 @@ {/if}
    - - diff --git a/test/runtime/samples/onstate-before-oncreate/main.html b/test/runtime/samples/onstate-before-oncreate/main.html index 9d4aa980ea..657cab43d1 100644 --- a/test/runtime/samples/onstate-before-oncreate/main.html +++ b/test/runtime/samples/onstate-before-oncreate/main.html @@ -1,16 +1,21 @@ \ No newline at end of file diff --git a/test/runtime/samples/onstate-before-render/_config.js b/test/runtime/samples/onstate-before-render/_config.js index 97c3af5083..bbb425c95a 100644 --- a/test/runtime/samples/onstate-before-render/_config.js +++ b/test/runtime/samples/onstate-before-render/_config.js @@ -5,7 +5,7 @@ export default { test(assert, component, target) { assert.deepEqual(order, [ - 'onstate', + 'onprops', 'render', 'oncreate', 'onupdate' diff --git a/test/runtime/samples/onstate-before-render/main.html b/test/runtime/samples/onstate-before-render/main.html index 572275268c..66709e0a4a 100644 --- a/test/runtime/samples/onstate-before-render/main.html +++ b/test/runtime/samples/onstate-before-render/main.html @@ -1,26 +1,24 @@ -{identity(42)} - - oncreate() { - order.push('oncreate'); - } - }; - \ No newline at end of file +{identity(42)} \ No newline at end of file diff --git a/test/runtime/samples/onstate-no-template/_config.js b/test/runtime/samples/onstate-no-template/_config.js deleted file mode 100644 index 87d7c599ce..0000000000 --- a/test/runtime/samples/onstate-no-template/_config.js +++ /dev/null @@ -1,11 +0,0 @@ -export default { - 'skip-ssr': true, - - data: { - foo: 'woo!' - }, - - test(assert, component) { - assert.deepEqual(component.changed, { foo: 1 }); - } -}; diff --git a/test/runtime/samples/onstate-no-template/main.html b/test/runtime/samples/onstate-no-template/main.html deleted file mode 100644 index a3c59f99be..0000000000 --- a/test/runtime/samples/onstate-no-template/main.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/test/runtime/samples/onstate/main.html b/test/runtime/samples/onstate/main.html index f35c64cd74..054db485e0 100644 --- a/test/runtime/samples/onstate/main.html +++ b/test/runtime/samples/onstate/main.html @@ -1,10 +1,13 @@ -

    {foo}

    -

    {bar}

    - \ No newline at end of file + import { onprops } from 'svelte'; + + export let foo; + export let bar; + + onprops(() => { + bar = foo.toUpperCase(); + }); + + +

    {foo}

    +

    {bar}

    \ No newline at end of file diff --git a/test/runtime/samples/onupdate/main.html b/test/runtime/samples/onupdate/main.html index 49afda13e5..ab80973fb2 100644 --- a/test/runtime/samples/onupdate/main.html +++ b/test/runtime/samples/onupdate/main.html @@ -1,12 +1,15 @@ -

    {value}

    -

    - \ No newline at end of file + import { onupdate } from 'svelte'; + + export let a; + export let b; + + export let value; + + onupdate(() => { + b.textContent = a.textContent; + }); + + +

    {value}

    +

    \ No newline at end of file diff --git a/test/runtime/samples/options/main.html b/test/runtime/samples/options/main.html index 1053bc4c0a..e33a0ea223 100644 --- a/test/runtime/samples/options/main.html +++ b/test/runtime/samples/options/main.html @@ -1,11 +1,11 @@ -

    {text}

    - \ No newline at end of file + import { onmount } from 'svelte'; + + export let text; + + onmount(() => { + text = this.options.text; + }); + + +

    {text}

    \ No newline at end of file diff --git a/test/runtime/samples/preload/main.html b/test/runtime/samples/preload/main.html index ef3f260679..b46e2a103e 100644 --- a/test/runtime/samples/preload/main.html +++ b/test/runtime/samples/preload/main.html @@ -1,9 +1,7 @@ - \ No newline at end of file diff --git a/test/runtime/samples/select-change-handler/main.html b/test/runtime/samples/select-change-handler/main.html index 13d9bd75af..eef7dc3dfa 100644 --- a/test/runtime/samples/select-change-handler/main.html +++ b/test/runtime/samples/select-change-handler/main.html @@ -1,15 +1,15 @@ - {#each options as option} {/each} - - diff --git a/test/runtime/samples/select-props/main.html b/test/runtime/samples/select-props/main.html index 9886a8b7b1..ff3855f085 100644 --- a/test/runtime/samples/select-props/main.html +++ b/test/runtime/samples/select-props/main.html @@ -1,19 +1,15 @@ + + {#each foo as bar} - {/each} - - diff --git a/test/runtime/samples/set-clones-input/main.html b/test/runtime/samples/set-clones-input/main.html index b5291a0790..72523b5b28 100644 --- a/test/runtime/samples/set-clones-input/main.html +++ b/test/runtime/samples/set-clones-input/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 77633574f1..fb7f0cc5ad 100644 --- a/test/runtime/samples/set-in-oncreate/main.html +++ b/test/runtime/samples/set-in-oncreate/main.html @@ -1,13 +1,11 @@ -

    {foo}

    - + +

    {foo}

    diff --git a/test/runtime/samples/set-in-onstate-dedupes-renders/Widget.html b/test/runtime/samples/set-in-onstate-dedupes-renders/Widget.html index 1d9c77e304..25900ca9a7 100644 --- a/test/runtime/samples/set-in-onstate-dedupes-renders/Widget.html +++ b/test/runtime/samples/set-in-onstate-dedupes-renders/Widget.html @@ -1,13 +1,14 @@ -
    {foo.x}
    - \ No newline at end of file + }); + + +
    {foo.x}
    \ No newline at end of file diff --git a/test/runtime/samples/set-in-onstate-dedupes-renders/main.html b/test/runtime/samples/set-in-onstate-dedupes-renders/main.html index 6813463ec1..dfe17be171 100644 --- a/test/runtime/samples/set-in-onstate-dedupes-renders/main.html +++ b/test/runtime/samples/set-in-onstate-dedupes-renders/main.html @@ -1,24 +1,14 @@ - - + + diff --git a/test/runtime/samples/set-in-onstate/main.html b/test/runtime/samples/set-in-onstate/main.html index a5776566ed..8755a79e4f 100644 --- a/test/runtime/samples/set-in-onstate/main.html +++ b/test/runtime/samples/set-in-onstate/main.html @@ -1,16 +1,13 @@ -

    {foo}

    -

    {bar}

    - + +

    {foo}

    +

    {bar}

    diff --git a/test/runtime/samples/set-prevents-loop/main.html b/test/runtime/samples/set-prevents-loop/main.html index 685bfeaa14..890e81db7b 100644 --- a/test/runtime/samples/set-prevents-loop/main.html +++ b/test/runtime/samples/set-prevents-loop/main.html @@ -1,20 +1,12 @@ + + {#if visible} {:else} {/if} - - diff --git a/test/runtime/samples/set-undefined-attr/main.html b/test/runtime/samples/set-undefined-attr/main.html index 09e63ca45b..a4d96e012f 100644 --- a/test/runtime/samples/set-undefined-attr/main.html +++ b/test/runtime/samples/set-undefined-attr/main.html @@ -1,14 +1,12 @@ -
    - + +
    diff --git a/test/runtime/samples/setup/_config.js b/test/runtime/samples/setup/_config.js deleted file mode 100644 index 47b0cf332e..0000000000 --- a/test/runtime/samples/setup/_config.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - test(assert, component) { - assert.ok(component.constructor.FOO); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/setup/main.html b/test/runtime/samples/setup/main.html deleted file mode 100644 index a1192323c9..0000000000 --- a/test/runtime/samples/setup/main.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/sigil-component-attribute/main.html b/test/runtime/samples/sigil-component-attribute/main.html index a5abcd92e5..93ff1b8fe6 100644 --- a/test/runtime/samples/sigil-component-attribute/main.html +++ b/test/runtime/samples/sigil-component-attribute/main.html @@ -1,6 +1,6 @@ - - + + diff --git a/test/runtime/samples/spread-component-dynamic/main.html b/test/runtime/samples/spread-component-dynamic/main.html index 7b89cf5a19..4b83ee5307 100644 --- a/test/runtime/samples/spread-component-dynamic/main.html +++ b/test/runtime/samples/spread-component-dynamic/main.html @@ -1,13 +1,7 @@ - - \ No newline at end of file + export let props; + + + \ No newline at end of file diff --git a/test/runtime/samples/spread-component-multiple-dependencies/main.html b/test/runtime/samples/spread-component-multiple-dependencies/main.html index dedfa27477..79ed1d2974 100644 --- a/test/runtime/samples/spread-component-multiple-dependencies/main.html +++ b/test/runtime/samples/spread-component-multiple-dependencies/main.html @@ -1,13 +1,10 @@ - - + + diff --git a/test/runtime/samples/spread-component-with-bind/main.html b/test/runtime/samples/spread-component-with-bind/main.html index 97ad6f7e44..7b63a385c4 100644 --- a/test/runtime/samples/spread-component-with-bind/main.html +++ b/test/runtime/samples/spread-component-with-bind/main.html @@ -1,15 +1,8 @@ - - \ No newline at end of file + export let props = {}; + export let x = 'foo'; + + + \ No newline at end of file diff --git a/test/runtime/samples/spread-component/main.html b/test/runtime/samples/spread-component/main.html index ea7e0a812c..351a7964ef 100644 --- a/test/runtime/samples/spread-component/main.html +++ b/test/runtime/samples/spread-component/main.html @@ -1,11 +1,9 @@ -
    - -
    - + +
    + +
    diff --git a/test/runtime/samples/spread-each-component/main.html b/test/runtime/samples/spread-each-component/main.html index 0e1e9ce1d6..2124861160 100644 --- a/test/runtime/samples/spread-each-component/main.html +++ b/test/runtime/samples/spread-each-component/main.html @@ -1,11 +1,9 @@ -{#each things as thing} - -{/each} - \ No newline at end of file + export let things; + + +{#each things as thing} + +{/each} \ No newline at end of file diff --git a/test/runtime/samples/spread-element-multiple-dependencies/main.html b/test/runtime/samples/spread-element-multiple-dependencies/main.html index f6f436714d..a1ed0ba645 100644 --- a/test/runtime/samples/spread-element-multiple-dependencies/main.html +++ b/test/runtime/samples/spread-element-multiple-dependencies/main.html @@ -1,12 +1,8 @@ -
    - + +
    diff --git a/test/runtime/samples/spread-element/main.html b/test/runtime/samples/spread-element/main.html index 391566826f..bf469e30ed 100644 --- a/test/runtime/samples/spread-element/main.html +++ b/test/runtime/samples/spread-element/main.html @@ -1,13 +1,9 @@ -
    {color}
    - + +
    {color}
    diff --git a/test/runtime/samples/store-binding/NameInput.html b/test/runtime/samples/store-binding/NameInput.html deleted file mode 100644 index a5e4f5e48c..0000000000 --- a/test/runtime/samples/store-binding/NameInput.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/store-binding/_config.js b/test/runtime/samples/store-binding/_config.js deleted file mode 100644 index 1b257f47e5..0000000000 --- a/test/runtime/samples/store-binding/_config.js +++ /dev/null @@ -1,33 +0,0 @@ -import { Store } from '../../../../store.js'; - -const store = new Store({ - name: 'world' -}); - -export default { - store, - - html: ` -

    Hello world!

    - - `, - - ssrHtml: ` -

    Hello world!

    - - `, - - test(assert, component, target, window) { - const input = target.querySelector('input'); - const event = new window.Event('input'); - - input.value = 'everybody'; - input.dispatchEvent(event); - - assert.equal(store.get().name, 'everybody'); - assert.htmlEqual(target.innerHTML, ` -

    Hello everybody!

    - - `); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store-binding/main.html b/test/runtime/samples/store-binding/main.html deleted file mode 100644 index 0f9e902bf3..0000000000 --- a/test/runtime/samples/store-binding/main.html +++ /dev/null @@ -1,10 +0,0 @@ -

    Hello {$name}!

    - - - \ No newline at end of file diff --git a/test/runtime/samples/store-child-data/Component.html b/test/runtime/samples/store-child-data/Component.html deleted file mode 100644 index df36fe5262..0000000000 --- a/test/runtime/samples/store-child-data/Component.html +++ /dev/null @@ -1 +0,0 @@ -

    {$items[index].title}

    \ No newline at end of file diff --git a/test/runtime/samples/store-child-data/_config.js b/test/runtime/samples/store-child-data/_config.js deleted file mode 100644 index 4322386f45..0000000000 --- a/test/runtime/samples/store-child-data/_config.js +++ /dev/null @@ -1,22 +0,0 @@ -import { Store } from '../../../../store.js'; - -const store = new Store({ - selectedIndex: 0, - items: [{ title: 'One' }, { title: 'Two' }] -}); - -export default { - store, - - html: ` -

    One

    - `, - - test(assert, component, target, window) { - store.set({ selectedIndex: 2, items: [{ title: 'One' }, { title: 'Two' }, { title: 'Three' }]}); - - assert.htmlEqual(target.innerHTML, ` -

    Three

    - `); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store-child-data/main.html b/test/runtime/samples/store-child-data/main.html deleted file mode 100644 index 0f3f9862de..0000000000 --- a/test/runtime/samples/store-child-data/main.html +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/test/runtime/samples/store-component-binding-deep/TextInput.html b/test/runtime/samples/store-component-binding-deep/TextInput.html deleted file mode 100644 index f24d608cd5..0000000000 --- a/test/runtime/samples/store-component-binding-deep/TextInput.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/store-component-binding-deep/_config.js b/test/runtime/samples/store-component-binding-deep/_config.js deleted file mode 100644 index 39c48445a6..0000000000 --- a/test/runtime/samples/store-component-binding-deep/_config.js +++ /dev/null @@ -1,47 +0,0 @@ -import { Store } from '../../../../store.js'; - -const store = new Store({ - name: { - value: 'world' - } -}); - -export default { - store, - - html: ` -

    Hello world!

    - - `, - - ssrHtml: ` -

    Hello world!

    - - `, - - test(assert, component, target, window) { - const input = target.querySelector('input'); - const event = new window.Event('input'); - - const changeRecord = []; - store.on('state', ({ changed, current }) => { - changeRecord.push({ changed, current }); - }); - - input.value = 'everybody'; - input.dispatchEvent(event); - - assert.equal(store.get().name.value, 'everybody'); - assert.htmlEqual(target.innerHTML, ` -

    Hello everybody!

    - - `); - - assert.deepEqual(changeRecord, [ - { - current: { name: { value: 'everybody' } }, - changed: { name: true } - } - ]); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store-component-binding-deep/main.html b/test/runtime/samples/store-component-binding-deep/main.html deleted file mode 100644 index 578c14cedb..0000000000 --- a/test/runtime/samples/store-component-binding-deep/main.html +++ /dev/null @@ -1,10 +0,0 @@ -

    Hello {$name.value}!

    - - - \ No newline at end of file diff --git a/test/runtime/samples/store-component-binding-each/Widget.html b/test/runtime/samples/store-component-binding-each/Widget.html deleted file mode 100644 index f24d608cd5..0000000000 --- a/test/runtime/samples/store-component-binding-each/Widget.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/store-component-binding-each/_config.js b/test/runtime/samples/store-component-binding-each/_config.js deleted file mode 100644 index 32aa44bee4..0000000000 --- a/test/runtime/samples/store-component-binding-each/_config.js +++ /dev/null @@ -1,41 +0,0 @@ -import { Store } from '../../../../store.js'; - -const store = new Store({ - a: ['foo', 'bar', 'baz'] -}); - -export default { - store, - - html: ` - - - -

    foo, bar, baz

    - `, - - ssrHtml: ` - - - -

    foo, bar, baz

    - `, - - test(assert, component, target, window) { - const event = new window.MouseEvent('input'); - const inputs = target.querySelectorAll('input'); - - inputs[0].value = 'blah'; - inputs[0].dispatchEvent(event); - - assert.deepEqual(store.get().a, ['blah', 'bar', 'baz']); - assert.htmlEqual(target.innerHTML, ` - - - -

    blah, bar, baz

    - `); - - component.destroy(); - }, -}; diff --git a/test/runtime/samples/store-component-binding-each/main.html b/test/runtime/samples/store-component-binding-each/main.html deleted file mode 100644 index 01be9e6b45..0000000000 --- a/test/runtime/samples/store-component-binding-each/main.html +++ /dev/null @@ -1,15 +0,0 @@ -{#each $a as x} - -{/each} - -

    {$a.join(', ')}

    - - diff --git a/test/runtime/samples/store-component-binding/TextInput.html b/test/runtime/samples/store-component-binding/TextInput.html deleted file mode 100644 index f24d608cd5..0000000000 --- a/test/runtime/samples/store-component-binding/TextInput.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/store-component-binding/_config.js b/test/runtime/samples/store-component-binding/_config.js deleted file mode 100644 index 57ee8a63d1..0000000000 --- a/test/runtime/samples/store-component-binding/_config.js +++ /dev/null @@ -1,45 +0,0 @@ -import { Store } from '../../../../store.js'; - -const store = new Store({ - name: 'world' -}); - -export default { - store, - - html: ` -

    Hello world!

    - - `, - - ssrHtml: ` -

    Hello world!

    - - `, - - test(assert, component, target, window) { - const input = target.querySelector('input'); - const event = new window.Event('input'); - - const changeRecord = []; - store.on('state', ({ changed, current }) => { - changeRecord.push({ changed, current }); - }); - - input.value = 'everybody'; - input.dispatchEvent(event); - - assert.equal(store.get().name, 'everybody'); - assert.htmlEqual(target.innerHTML, ` -

    Hello everybody!

    - - `); - - assert.deepEqual(changeRecord, [ - { - current: { name: 'everybody' }, - changed: { name: true } - } - ]); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store-component-binding/main.html b/test/runtime/samples/store-component-binding/main.html deleted file mode 100644 index 8abfd6c239..0000000000 --- a/test/runtime/samples/store-component-binding/main.html +++ /dev/null @@ -1,10 +0,0 @@ -

    Hello {$name}!

    - - - \ No newline at end of file diff --git a/test/runtime/samples/store-computed-oncreate/_config.js b/test/runtime/samples/store-computed-oncreate/_config.js deleted file mode 100644 index 5e58271bad..0000000000 --- a/test/runtime/samples/store-computed-oncreate/_config.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Store } from '../../../../store.js'; - -export default { - 'skip-ssr': true, - - store: new Store(), - - html: ` -

    Hello Brian!

    - ` -}; \ No newline at end of file diff --git a/test/runtime/samples/store-computed-oncreate/main.html b/test/runtime/samples/store-computed-oncreate/main.html deleted file mode 100644 index ce35a047b5..0000000000 --- a/test/runtime/samples/store-computed-oncreate/main.html +++ /dev/null @@ -1,10 +0,0 @@ -

    Hello {$name}!

    - - \ No newline at end of file diff --git a/test/runtime/samples/store-computed/Todo.html b/test/runtime/samples/store-computed/Todo.html deleted file mode 100644 index c665d86d32..0000000000 --- a/test/runtime/samples/store-computed/Todo.html +++ /dev/null @@ -1,15 +0,0 @@ -{#if isVisible} -
    {todo.description}
    -{/if} - - \ No newline at end of file diff --git a/test/runtime/samples/store-computed/_config.js b/test/runtime/samples/store-computed/_config.js deleted file mode 100644 index f922a55738..0000000000 --- a/test/runtime/samples/store-computed/_config.js +++ /dev/null @@ -1,63 +0,0 @@ -import { Store } from '../../../../store.js'; - -class MyStore extends Store { - setFilter(filter) { - this.set({ filter }); - } - - toggleTodo(todo) { - todo.done = !todo.done; - this.set({ todos: this.get().todos }); - } -} - -const todos = [ - { - description: 'Buy some milk', - done: true, - }, - { - description: 'Do the laundry', - done: true, - }, - { - description: "Find life's true purpose", - done: false, - } -]; - -const store = new MyStore({ - filter: 'all', - todos -}); - -export default { - store, - - html: ` -
    Buy some milk
    -
    Do the laundry
    -
    Find life's true purpose
    - `, - - test(assert, component, target) { - store.setFilter('pending'); - - assert.htmlEqual(target.innerHTML, ` -
    Find life's true purpose
    - `); - - store.toggleTodo(todos[1]); - - assert.htmlEqual(target.innerHTML, ` -
    Do the laundry
    -
    Find life's true purpose
    - `); - - store.setFilter('done'); - - assert.htmlEqual(target.innerHTML, ` -
    Buy some milk
    - `); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store-computed/main.html b/test/runtime/samples/store-computed/main.html deleted file mode 100644 index 42af517dde..0000000000 --- a/test/runtime/samples/store-computed/main.html +++ /dev/null @@ -1,11 +0,0 @@ -{#each $todos as todo} - -{/each} - - \ No newline at end of file diff --git a/test/runtime/samples/store-event/NameInput.html b/test/runtime/samples/store-event/NameInput.html deleted file mode 100644 index d1d31bf64e..0000000000 --- a/test/runtime/samples/store-event/NameInput.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/runtime/samples/store-event/_config.js b/test/runtime/samples/store-event/_config.js deleted file mode 100644 index 58afa15611..0000000000 --- a/test/runtime/samples/store-event/_config.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Store } from '../../../../store.js'; - -class MyStore extends Store { - setName(name) { - this.set({ name }); - } -} - -const store = new MyStore({ - name: 'world' -}); - -export default { - store, - - html: ` -

    Hello world!

    - - `, - - test(assert, component, target, window) { - const input = target.querySelector('input'); - const event = new window.Event('input'); - - input.value = 'everybody'; - input.dispatchEvent(event); - - assert.equal(store.get().name, 'everybody'); - assert.htmlEqual(target.innerHTML, ` -

    Hello everybody!

    - - `); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store-event/main.html b/test/runtime/samples/store-event/main.html deleted file mode 100644 index 0f9e902bf3..0000000000 --- a/test/runtime/samples/store-event/main.html +++ /dev/null @@ -1,10 +0,0 @@ -

    Hello {$name}!

    - - - \ No newline at end of file diff --git a/test/runtime/samples/store-nested/Nested.html b/test/runtime/samples/store-nested/Nested.html deleted file mode 100644 index 0ba00df434..0000000000 --- a/test/runtime/samples/store-nested/Nested.html +++ /dev/null @@ -1,13 +0,0 @@ -

    Hello, {$name}!

    - - diff --git a/test/runtime/samples/store-nested/_config.js b/test/runtime/samples/store-nested/_config.js deleted file mode 100644 index 594bd65873..0000000000 --- a/test/runtime/samples/store-nested/_config.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - html: ` -

    Hello, world!

    - `, -}; diff --git a/test/runtime/samples/store-nested/main.html b/test/runtime/samples/store-nested/main.html deleted file mode 100644 index a1e069b2a1..0000000000 --- a/test/runtime/samples/store-nested/main.html +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/test/runtime/samples/store-onstate-dollar/_config.js b/test/runtime/samples/store-onstate-dollar/_config.js deleted file mode 100644 index 281fa76299..0000000000 --- a/test/runtime/samples/store-onstate-dollar/_config.js +++ /dev/null @@ -1,27 +0,0 @@ -import { Store } from '../../../../store.js'; - -const store = new Store({ - name: 'world' -}); - -export default { - store, - - html: `

    Hello world!

    `, - - compileOptions: { - dev: true - }, - - test(assert, component) { - const names = []; - - component.on('state', ({ current }) => { - names.push(current.$name); - }); - - store.set({ name: 'everybody' }); - - assert.deepEqual(names, ['everybody']); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store-onstate-dollar/main.html b/test/runtime/samples/store-onstate-dollar/main.html deleted file mode 100644 index ddb69c2148..0000000000 --- a/test/runtime/samples/store-onstate-dollar/main.html +++ /dev/null @@ -1 +0,0 @@ -

    Hello {$name}!

    \ No newline at end of file diff --git a/test/runtime/samples/store-root/Nested.html b/test/runtime/samples/store-root/Nested.html deleted file mode 100644 index 2bee21b9b1..0000000000 --- a/test/runtime/samples/store-root/Nested.html +++ /dev/null @@ -1 +0,0 @@ -

    It's nice to see you, {$name}.

    \ No newline at end of file diff --git a/test/runtime/samples/store-root/_config.js b/test/runtime/samples/store-root/_config.js deleted file mode 100644 index 278cbff30b..0000000000 --- a/test/runtime/samples/store-root/_config.js +++ /dev/null @@ -1,15 +0,0 @@ -export default { - html: ` -

    Hello world!

    -

    It's nice to see you, world.

    - `, - - test(assert, component, target) { - component.store.set({ name: 'everybody' }); - - assert.htmlEqual(target.innerHTML, ` -

    Hello everybody!

    -

    It's nice to see you, everybody.

    - `); - } -}; diff --git a/test/runtime/samples/store-root/main.html b/test/runtime/samples/store-root/main.html deleted file mode 100644 index b880433bee..0000000000 --- a/test/runtime/samples/store-root/main.html +++ /dev/null @@ -1,19 +0,0 @@ -

    Hello {$name}!

    - - - diff --git a/test/runtime/samples/store/_config.js b/test/runtime/samples/store/_config.js deleted file mode 100644 index 4e266ff095..0000000000 --- a/test/runtime/samples/store/_config.js +++ /dev/null @@ -1,17 +0,0 @@ -import { Store } from '../../../../store.js'; - -const store = new Store({ - name: 'world' -}); - -export default { - store, - - html: `

    Hello world!

    `, - - test(assert, component, target) { - store.set({ name: 'everybody' }); - - assert.htmlEqual(target.innerHTML, `

    Hello everybody!

    `); - } -}; \ No newline at end of file diff --git a/test/runtime/samples/store/main.html b/test/runtime/samples/store/main.html deleted file mode 100644 index ddb69c2148..0000000000 --- a/test/runtime/samples/store/main.html +++ /dev/null @@ -1 +0,0 @@ -

    Hello {$name}!

    \ No newline at end of file diff --git a/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/Rect.html b/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/Rect.html index 143b2f8223..dca8ea49ce 100644 --- a/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/Rect.html +++ b/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/Rect.html @@ -1,7 +1,8 @@ - - + + diff --git a/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/main.html b/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/main.html index 6ae6ad8590..9e82368dbc 100644 --- a/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/main.html +++ b/test/runtime/samples/svg-child-component-declared-namespace-backtick-string/main.html @@ -1,11 +1,12 @@ - - - - + + + + diff --git a/test/runtime/samples/svg-child-component-declared-namespace-shorthand/Rect.html b/test/runtime/samples/svg-child-component-declared-namespace-shorthand/Rect.html index 536f47107e..4e72c96fbe 100644 --- a/test/runtime/samples/svg-child-component-declared-namespace-shorthand/Rect.html +++ b/test/runtime/samples/svg-child-component-declared-namespace-shorthand/Rect.html @@ -1,7 +1,10 @@ - + + + diff --git a/test/runtime/samples/svg-child-component-declared-namespace-shorthand/main.html b/test/runtime/samples/svg-child-component-declared-namespace-shorthand/main.html index 6ae6ad8590..9e82368dbc 100644 --- a/test/runtime/samples/svg-child-component-declared-namespace-shorthand/main.html +++ b/test/runtime/samples/svg-child-component-declared-namespace-shorthand/main.html @@ -1,11 +1,12 @@ - - - - + + + + diff --git a/test/runtime/samples/svg-child-component-declared-namespace/Rect.html b/test/runtime/samples/svg-child-component-declared-namespace/Rect.html index d6c96e8e49..b9d1584b44 100644 --- a/test/runtime/samples/svg-child-component-declared-namespace/Rect.html +++ b/test/runtime/samples/svg-child-component-declared-namespace/Rect.html @@ -1,7 +1,10 @@ - + + + diff --git a/test/runtime/samples/svg-child-component-declared-namespace/main.html b/test/runtime/samples/svg-child-component-declared-namespace/main.html index 6ae6ad8590..9e82368dbc 100644 --- a/test/runtime/samples/svg-child-component-declared-namespace/main.html +++ b/test/runtime/samples/svg-child-component-declared-namespace/main.html @@ -1,11 +1,12 @@ - - - - + + + + diff --git a/test/runtime/samples/svg-each-block-namespace/main.html b/test/runtime/samples/svg-each-block-namespace/main.html index 4a85ffb641..94bf834c68 100644 --- a/test/runtime/samples/svg-each-block-namespace/main.html +++ b/test/runtime/samples/svg-each-block-namespace/main.html @@ -1,15 +1,9 @@ + + {#each colours as colour, i} {/each} - - diff --git a/test/runtime/samples/transition-css-deferred-removal/main.html b/test/runtime/samples/transition-css-deferred-removal/main.html index a93aed8366..34a98ca081 100644 --- a/test/runtime/samples/transition-css-deferred-removal/main.html +++ b/test/runtime/samples/transition-css-deferred-removal/main.html @@ -1,31 +1,29 @@ + + {#if visible} double transition -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-css-delay/main.html b/test/runtime/samples/transition-css-delay/main.html index 46a46aa527..faf89582e8 100644 --- a/test/runtime/samples/transition-css-delay/main.html +++ b/test/runtime/samples/transition-css-delay/main.html @@ -1,19 +1,17 @@ -{#if visible} -
    delayed
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    delayed
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-css-duration/main.html b/test/runtime/samples/transition-css-duration/main.html index e10df79f55..c79672f21b 100644 --- a/test/runtime/samples/transition-css-duration/main.html +++ b/test/runtime/samples/transition-css-duration/main.html @@ -1,18 +1,16 @@ -{#if visible} -
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-aborted-outro-in-each/main.html b/test/runtime/samples/transition-js-aborted-outro-in-each/main.html index fabdc527a3..689d301488 100644 --- a/test/runtime/samples/transition-js-aborted-outro-in-each/main.html +++ b/test/runtime/samples/transition-js-aborted-outro-in-each/main.html @@ -1,19 +1,17 @@ -{#each things as thing, i} - {thing} -{/each} - \ No newline at end of file + }; + } + + +{#each things as thing, i} + {thing} +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-aborted-outro/main.html b/test/runtime/samples/transition-js-aborted-outro/main.html index 47c93a2321..564b88a388 100644 --- a/test/runtime/samples/transition-js-aborted-outro/main.html +++ b/test/runtime/samples/transition-js-aborted-outro/main.html @@ -1,18 +1,16 @@ -{#if visible} - hello -{/if} - \ No newline at end of file + }; + } + + +{#if visible} + hello +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-args/main.html b/test/runtime/samples/transition-js-args/main.html index 890ec9a5e4..3b4140edab 100644 --- a/test/runtime/samples/transition-js-args/main.html +++ b/test/runtime/samples/transition-js-args/main.html @@ -1,17 +1,13 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-await-block/main.html b/test/runtime/samples/transition-js-await-block/main.html index 9fc038fd66..0a0bb0005d 100644 --- a/test/runtime/samples/transition-js-await-block/main.html +++ b/test/runtime/samples/transition-js-await-block/main.html @@ -1,22 +1,20 @@ + + {#await promise}

    loading...

    {:then value}

    {value}

    {:catch error}

    {error.message}

    -{/await} - - \ No newline at end of file +{/await} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-context/main.html b/test/runtime/samples/transition-js-context/main.html index 18f5f50ec9..ae98ae5b45 100644 --- a/test/runtime/samples/transition-js-context/main.html +++ b/test/runtime/samples/transition-js-context/main.html @@ -1,20 +1,14 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-deferred/main.html b/test/runtime/samples/transition-js-deferred/main.html index 01985384ad..32e68a46f3 100644 --- a/test/runtime/samples/transition-js-deferred/main.html +++ b/test/runtime/samples/transition-js-deferred/main.html @@ -1,20 +1,18 @@ + + {#if visible}
    -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-delay-in-out/main.html b/test/runtime/samples/transition-js-delay-in-out/main.html index 43400fd67e..bfef30b59c 100644 --- a/test/runtime/samples/transition-js-delay-in-out/main.html +++ b/test/runtime/samples/transition-js-delay-in-out/main.html @@ -1,29 +1,27 @@ -{#if visible} -
    delayed
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    delayed
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-delay/main.html b/test/runtime/samples/transition-js-delay/main.html index 1db651008d..dbe3427973 100644 --- a/test/runtime/samples/transition-js-delay/main.html +++ b/test/runtime/samples/transition-js-delay/main.html @@ -1,19 +1,17 @@ -{#if visible} -
    delayed
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    delayed
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-destroyed-before-end/main.html b/test/runtime/samples/transition-js-destroyed-before-end/main.html index e6e0ee0c63..3ec92de494 100644 --- a/test/runtime/samples/transition-js-destroyed-before-end/main.html +++ b/test/runtime/samples/transition-js-destroyed-before-end/main.html @@ -1,18 +1,16 @@ -{#if visible} -
    destroy me
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    destroy me
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-dynamic-component/A.html b/test/runtime/samples/transition-js-dynamic-component/A.html index 7671fb5c58..e1764ec76d 100644 --- a/test/runtime/samples/transition-js-dynamic-component/A.html +++ b/test/runtime/samples/transition-js-dynamic-component/A.html @@ -1,16 +1,12 @@ -
    a
    - \ No newline at end of file + }; + } + + +
    a
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-dynamic-component/B.html b/test/runtime/samples/transition-js-dynamic-component/B.html index 4ebe317cac..d242d866fc 100644 --- a/test/runtime/samples/transition-js-dynamic-component/B.html +++ b/test/runtime/samples/transition-js-dynamic-component/B.html @@ -1,16 +1,12 @@ -
    b
    - \ No newline at end of file + }; + } + + +
    b
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-dynamic-component/main.html b/test/runtime/samples/transition-js-dynamic-component/main.html index 02983215cc..85c88d9442 100644 --- a/test/runtime/samples/transition-js-dynamic-component/main.html +++ b/test/runtime/samples/transition-js-dynamic-component/main.html @@ -1,12 +1,8 @@ - - \ No newline at end of file + export let x; + + + \ No newline at end of file diff --git a/test/runtime/samples/transition-js-dynamic-if-block-bidi/main.html b/test/runtime/samples/transition-js-dynamic-if-block-bidi/main.html index fba00bcd38..5c28cc164c 100644 --- a/test/runtime/samples/transition-js-dynamic-if-block-bidi/main.html +++ b/test/runtime/samples/transition-js-dynamic-if-block-bidi/main.html @@ -1,19 +1,18 @@ -{#if visible} -
    hello {name}!
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    hello {name}!
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-each-block-intro-outro/main.html b/test/runtime/samples/transition-js-each-block-intro-outro/main.html index 08b2398408..a582a22eb8 100644 --- a/test/runtime/samples/transition-js-each-block-intro-outro/main.html +++ b/test/runtime/samples/transition-js-each-block-intro-outro/main.html @@ -1,29 +1,28 @@ + + {#each things as thing} {#if visible}
    {thing}
    {/if} -{/each} - - \ No newline at end of file +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-each-block-intro/main.html b/test/runtime/samples/transition-js-each-block-intro/main.html index 4264a2d684..d19924af61 100644 --- a/test/runtime/samples/transition-js-each-block-intro/main.html +++ b/test/runtime/samples/transition-js-each-block-intro/main.html @@ -1,18 +1,16 @@ -{#each things as thing} -
    {thing}
    -{/each} - \ No newline at end of file + }; + } + + +{#each things as thing} +
    {thing}
    +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-each-block-keyed-intro-outro/main.html b/test/runtime/samples/transition-js-each-block-keyed-intro-outro/main.html index 111f081d97..89282dafeb 100644 --- a/test/runtime/samples/transition-js-each-block-keyed-intro-outro/main.html +++ b/test/runtime/samples/transition-js-each-block-keyed-intro-outro/main.html @@ -1,18 +1,16 @@ -{#each things as thing (thing.name)} -
    {thing.name}
    -{/each} - \ No newline at end of file + }; + } + + +{#each things as thing (thing.name)} +
    {thing.name}
    +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-each-block-keyed-intro/main.html b/test/runtime/samples/transition-js-each-block-keyed-intro/main.html index f6a89b5b0a..69697b444f 100644 --- a/test/runtime/samples/transition-js-each-block-keyed-intro/main.html +++ b/test/runtime/samples/transition-js-each-block-keyed-intro/main.html @@ -1,18 +1,16 @@ -{#each things as thing (thing.name)} -
    {thing.name}
    -{/each} - \ No newline at end of file + }; + } + + +{#each things as thing (thing.name)} +
    {thing.name}
    +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-each-block-keyed-outro/main.html b/test/runtime/samples/transition-js-each-block-keyed-outro/main.html index e0d9722cf7..58d425d135 100644 --- a/test/runtime/samples/transition-js-each-block-keyed-outro/main.html +++ b/test/runtime/samples/transition-js-each-block-keyed-outro/main.html @@ -1,18 +1,16 @@ -{#each things as thing (thing.name)} -
    {thing.name}
    -{/each} - \ No newline at end of file + }; + } + + +{#each things as thing (thing.name)} +
    {thing.name}
    +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-each-block-outro/main.html b/test/runtime/samples/transition-js-each-block-outro/main.html index dc8c2dce60..77301a25f5 100644 --- a/test/runtime/samples/transition-js-each-block-outro/main.html +++ b/test/runtime/samples/transition-js-each-block-outro/main.html @@ -1,18 +1,16 @@ -{#each things as thing} -
    {thing}
    -{/each} - \ No newline at end of file + }; + } + + +{#each things as thing} +
    {thing}
    +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-events/main.html b/test/runtime/samples/transition-js-events/main.html index 93ab47a8aa..15e99e56b9 100644 --- a/test/runtime/samples/transition-js-events/main.html +++ b/test/runtime/samples/transition-js-events/main.html @@ -1,45 +1,53 @@ + + + + {#each things as thing} {#if visible}

    {thing}

    {/if} -{/each} - - \ No newline at end of file +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-block-bidi/main.html b/test/runtime/samples/transition-js-if-block-bidi/main.html index 379acc128e..1a34ef51b2 100644 --- a/test/runtime/samples/transition-js-if-block-bidi/main.html +++ b/test/runtime/samples/transition-js-if-block-bidi/main.html @@ -1,19 +1,17 @@ -{#if visible} -
    foo bidi
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    foo bidi
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-block-in-each-block-bidi-2/main.html b/test/runtime/samples/transition-js-if-block-in-each-block-bidi-2/main.html index 97a2cb5a04..710606b4ac 100644 --- a/test/runtime/samples/transition-js-if-block-in-each-block-bidi-2/main.html +++ b/test/runtime/samples/transition-js-if-block-in-each-block-bidi-2/main.html @@ -1,3 +1,17 @@ + + {#each [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] as number} {#if foo} {#if threshold >= number} @@ -8,19 +22,4 @@
    {number}
    {/if} {/if} -{/each} - - \ No newline at end of file +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-block-in-each-block-bidi-3/main.html b/test/runtime/samples/transition-js-if-block-in-each-block-bidi-3/main.html index 97a2cb5a04..710606b4ac 100644 --- a/test/runtime/samples/transition-js-if-block-in-each-block-bidi-3/main.html +++ b/test/runtime/samples/transition-js-if-block-in-each-block-bidi-3/main.html @@ -1,3 +1,17 @@ + + {#each [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] as number} {#if foo} {#if threshold >= number} @@ -8,19 +22,4 @@
    {number}
    {/if} {/if} -{/each} - - \ No newline at end of file +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-block-in-each-block-bidi/main.html b/test/runtime/samples/transition-js-if-block-in-each-block-bidi/main.html index ac9ce0a18f..5d85e51c73 100644 --- a/test/runtime/samples/transition-js-if-block-in-each-block-bidi/main.html +++ b/test/runtime/samples/transition-js-if-block-in-each-block-bidi/main.html @@ -1,20 +1,18 @@ + + {#each [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] as number} {#if threshold >= number}
    {number}
    {/if} -{/each} - - \ No newline at end of file +{/each} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-block-intro-outro/main.html b/test/runtime/samples/transition-js-if-block-intro-outro/main.html index f9b8cb445c..812356106a 100644 --- a/test/runtime/samples/transition-js-if-block-intro-outro/main.html +++ b/test/runtime/samples/transition-js-if-block-intro-outro/main.html @@ -1,27 +1,25 @@ -{#if visible} -
    foo then bar
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    foo then bar
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-block-intro/main.html b/test/runtime/samples/transition-js-if-block-intro/main.html index fb089a6c8e..3be2daa56e 100644 --- a/test/runtime/samples/transition-js-if-block-intro/main.html +++ b/test/runtime/samples/transition-js-if-block-intro/main.html @@ -1,18 +1,16 @@ -{#if visible} -
    fades in
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    fades in
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-block-outro-timeout/main.html b/test/runtime/samples/transition-js-if-block-outro-timeout/main.html index 7b627a9f72..3fe0327324 100644 --- a/test/runtime/samples/transition-js-if-block-outro-timeout/main.html +++ b/test/runtime/samples/transition-js-if-block-outro-timeout/main.html @@ -1,18 +1,18 @@ -{#if visible} -
    yes
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    yes
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-else-block-dynamic-outro/main.html b/test/runtime/samples/transition-js-if-else-block-dynamic-outro/main.html index 495bfe1d3d..41809bd664 100644 --- a/test/runtime/samples/transition-js-if-else-block-dynamic-outro/main.html +++ b/test/runtime/samples/transition-js-if-else-block-dynamic-outro/main.html @@ -1,20 +1,22 @@ + + {#if x}
    {z}
    {:else}
    {z}
    -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-else-block-intro/main.html b/test/runtime/samples/transition-js-if-else-block-intro/main.html index 0ff96c13e9..117f2ba8ee 100644 --- a/test/runtime/samples/transition-js-if-else-block-intro/main.html +++ b/test/runtime/samples/transition-js-if-else-block-intro/main.html @@ -1,20 +1,21 @@ + + {#if x}
    yes
    {:else}
    no
    -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-else-block-outro/main.html b/test/runtime/samples/transition-js-if-else-block-outro/main.html index 29b42fac52..ba5c762146 100644 --- a/test/runtime/samples/transition-js-if-else-block-outro/main.html +++ b/test/runtime/samples/transition-js-if-else-block-outro/main.html @@ -1,20 +1,21 @@ + + {#if x}
    yes
    {:else}
    no
    -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-if-elseif-block-outro/main.html b/test/runtime/samples/transition-js-if-elseif-block-outro/main.html index 0072736880..ca4e4301da 100644 --- a/test/runtime/samples/transition-js-if-elseif-block-outro/main.html +++ b/test/runtime/samples/transition-js-if-elseif-block-outro/main.html @@ -1,20 +1,22 @@ + + {#if x}
    yes
    {:elseif y}
    no
    -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-initial/main.html b/test/runtime/samples/transition-js-initial/main.html index 16ced20bc3..64d17e0db3 100644 --- a/test/runtime/samples/transition-js-initial/main.html +++ b/test/runtime/samples/transition-js-initial/main.html @@ -1,16 +1,12 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-intro-enabled-by-option/main.html b/test/runtime/samples/transition-js-intro-enabled-by-option/main.html index 16ced20bc3..64d17e0db3 100644 --- a/test/runtime/samples/transition-js-intro-enabled-by-option/main.html +++ b/test/runtime/samples/transition-js-intro-enabled-by-option/main.html @@ -1,16 +1,12 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-intro-skipped-by-default-nested/Widget.html b/test/runtime/samples/transition-js-intro-skipped-by-default-nested/Widget.html index 16ced20bc3..64d17e0db3 100644 --- a/test/runtime/samples/transition-js-intro-skipped-by-default-nested/Widget.html +++ b/test/runtime/samples/transition-js-intro-skipped-by-default-nested/Widget.html @@ -1,16 +1,12 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-intro-skipped-by-default-nested/main.html b/test/runtime/samples/transition-js-intro-skipped-by-default-nested/main.html index fca2ea7607..cbcde3f1ed 100644 --- a/test/runtime/samples/transition-js-intro-skipped-by-default-nested/main.html +++ b/test/runtime/samples/transition-js-intro-skipped-by-default-nested/main.html @@ -1,9 +1,5 @@ - - \ No newline at end of file + import Widget from './Widget.html'; + + + \ No newline at end of file diff --git a/test/runtime/samples/transition-js-intro-skipped-by-default/main.html b/test/runtime/samples/transition-js-intro-skipped-by-default/main.html index 16ced20bc3..64d17e0db3 100644 --- a/test/runtime/samples/transition-js-intro-skipped-by-default/main.html +++ b/test/runtime/samples/transition-js-intro-skipped-by-default/main.html @@ -1,16 +1,12 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-await/main.html b/test/runtime/samples/transition-js-nested-await/main.html index 039051a8bd..bcd531c44c 100644 --- a/test/runtime/samples/transition-js-nested-await/main.html +++ b/test/runtime/samples/transition-js-nested-await/main.html @@ -1,20 +1,19 @@ + + {#if x} {#await promise then value}
    {/await} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-component/Widget.html b/test/runtime/samples/transition-js-nested-component/Widget.html index 16ced20bc3..64d17e0db3 100644 --- a/test/runtime/samples/transition-js-nested-component/Widget.html +++ b/test/runtime/samples/transition-js-nested-component/Widget.html @@ -1,16 +1,12 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-component/main.html b/test/runtime/samples/transition-js-nested-component/main.html index 2930f4dc16..b4b3beccd8 100644 --- a/test/runtime/samples/transition-js-nested-component/main.html +++ b/test/runtime/samples/transition-js-nested-component/main.html @@ -1,13 +1,9 @@ -{#if x} - -{/if} - \ No newline at end of file + export let x; + + +{#if x} + +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-each-delete/main.html b/test/runtime/samples/transition-js-nested-each-delete/main.html index e12370703e..e2cf13add3 100644 --- a/test/runtime/samples/transition-js-nested-each-delete/main.html +++ b/test/runtime/samples/transition-js-nested-each-delete/main.html @@ -1,20 +1,19 @@ + + {#if visible} {#each things as thing}
    {thing}
    {/each} {/if} - - diff --git a/test/runtime/samples/transition-js-nested-each-keyed-2/main.html b/test/runtime/samples/transition-js-nested-each-keyed-2/main.html index d931f220a4..89dec348a0 100644 --- a/test/runtime/samples/transition-js-nested-each-keyed-2/main.html +++ b/test/runtime/samples/transition-js-nested-each-keyed-2/main.html @@ -1,9 +1,10 @@ + + {#if x} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-each-keyed/main.html b/test/runtime/samples/transition-js-nested-each-keyed/main.html index 335380695d..5f86eebf70 100644 --- a/test/runtime/samples/transition-js-nested-each-keyed/main.html +++ b/test/runtime/samples/transition-js-nested-each-keyed/main.html @@ -1,20 +1,19 @@ + + {#if x} {#each things as thing (thing)}
    {/each} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-each/main.html b/test/runtime/samples/transition-js-nested-each/main.html index c47940c1cf..f9be834a01 100644 --- a/test/runtime/samples/transition-js-nested-each/main.html +++ b/test/runtime/samples/transition-js-nested-each/main.html @@ -1,20 +1,19 @@ + + {#if x} {#each things as thing}
    {/each} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-if/main.html b/test/runtime/samples/transition-js-nested-if/main.html index cd10c9118f..fac9e062ff 100644 --- a/test/runtime/samples/transition-js-nested-if/main.html +++ b/test/runtime/samples/transition-js-nested-if/main.html @@ -1,20 +1,19 @@ + + {#if x} {#if y}
    {/if} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-intro/Child.html b/test/runtime/samples/transition-js-nested-intro/Child.html index 32a4b81152..341a0822e1 100644 --- a/test/runtime/samples/transition-js-nested-intro/Child.html +++ b/test/runtime/samples/transition-js-nested-intro/Child.html @@ -1,17 +1,13 @@ -
    - \ No newline at end of file + }; + } + + +
    \ No newline at end of file diff --git a/test/runtime/samples/transition-js-nested-intro/main.html b/test/runtime/samples/transition-js-nested-intro/main.html index c06e004c8c..f222940ad5 100644 --- a/test/runtime/samples/transition-js-nested-intro/main.html +++ b/test/runtime/samples/transition-js-nested-intro/main.html @@ -1,10 +1,8 @@ -{#if visible} - delayed -{/if} - \ No newline at end of file + export let visible; + + +{#if visible} + delayed +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-parameterised-with-state/main.html b/test/runtime/samples/transition-js-parameterised-with-state/main.html index 68d036e4da..d5512f0075 100644 --- a/test/runtime/samples/transition-js-parameterised-with-state/main.html +++ b/test/runtime/samples/transition-js-parameterised-with-state/main.html @@ -1,18 +1,17 @@ -{#if visible} -
    fades in
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    fades in
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/transition-js-parameterised/main.html b/test/runtime/samples/transition-js-parameterised/main.html index 5d9a59f7a7..7e022ae269 100644 --- a/test/runtime/samples/transition-js-parameterised/main.html +++ b/test/runtime/samples/transition-js-parameterised/main.html @@ -1,18 +1,16 @@ -{#if visible} -
    fades in
    -{/if} - \ No newline at end of file + }; + } + + +{#if visible} +
    fades in
    +{/if} \ No newline at end of file diff --git a/test/runtime/samples/window-event-context/main.html b/test/runtime/samples/window-event-context/main.html index af60672a2a..f0e37fd094 100644 --- a/test/runtime/samples/window-event-context/main.html +++ b/test/runtime/samples/window-event-context/main.html @@ -1,3 +1,3 @@ - + {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 515d5bc4ca..a94c79105f 100644 --- a/test/runtime/samples/window-event-custom/main.html +++ b/test/runtime/samples/window-event-custom/main.html @@ -1,25 +1,19 @@ - - -

    escaped: {escaped}

    - \ No newline at end of file + node.addEventListener('keydown', onKeyDown); + return { + destroy() { + node.removeEventListener('keydown', onKeyDown); + } + }; + } + + + + +

    escaped: {escaped}

    \ No newline at end of file diff --git a/test/runtime/samples/window-event/main.html b/test/runtime/samples/window-event/main.html index 76f5c02084..4bf0eee526 100644 --- a/test/runtime/samples/window-event/main.html +++ b/test/runtime/samples/window-event/main.html @@ -1,3 +1,3 @@ - +
    {width}x{height}
    \ No newline at end of file diff --git a/test/server-side-rendering/samples/attribute-escaped-quotes-spread/main.html b/test/server-side-rendering/samples/attribute-escaped-quotes-spread/main.html index 669d7664ac..ff6c15981d 100644 --- a/test/server-side-rendering/samples/attribute-escaped-quotes-spread/main.html +++ b/test/server-side-rendering/samples/attribute-escaped-quotes-spread/main.html @@ -1,16 +1,9 @@ -
    - \ No newline at end of file + + +
    \ No newline at end of file diff --git a/test/server-side-rendering/samples/attribute-escaped-quotes/main.html b/test/server-side-rendering/samples/attribute-escaped-quotes/main.html index 47e3466ab0..ed34f4d129 100644 --- a/test/server-side-rendering/samples/attribute-escaped-quotes/main.html +++ b/test/server-side-rendering/samples/attribute-escaped-quotes/main.html @@ -1,12 +1,5 @@ -
    - - export default { - data() { - return { - foo: '">
    \ No newline at end of file +
    \ No newline at end of file diff --git a/test/server-side-rendering/samples/bindings/main.html b/test/server-side-rendering/samples/bindings/main.html index 6a08ab5706..20c43fc39c 100644 --- a/test/server-side-rendering/samples/bindings/main.html +++ b/test/server-side-rendering/samples/bindings/main.html @@ -1,8 +1,5 @@ - - \ No newline at end of file + + + \ No newline at end of file diff --git a/test/server-side-rendering/samples/component-binding-renamed/Foo.html b/test/server-side-rendering/samples/component-binding-renamed/Foo.html index b0f08ce1d2..fd78630d30 100644 --- a/test/server-side-rendering/samples/component-binding-renamed/Foo.html +++ b/test/server-side-rendering/samples/component-binding-renamed/Foo.html @@ -1,11 +1,5 @@ -:foo: - + +:foo: diff --git a/test/server-side-rendering/samples/component-binding-renamed/main.html b/test/server-side-rendering/samples/component-binding-renamed/main.html index 7f5e588534..857c2acc65 100644 --- a/test/server-side-rendering/samples/component-binding-renamed/main.html +++ b/test/server-side-rendering/samples/component-binding-renamed/main.html @@ -1,11 +1,8 @@ -{y}{y} - + +{y}{y} diff --git a/test/server-side-rendering/samples/component-binding/Foo.html b/test/server-side-rendering/samples/component-binding/Foo.html index b0f08ce1d2..fd78630d30 100644 --- a/test/server-side-rendering/samples/component-binding/Foo.html +++ b/test/server-side-rendering/samples/component-binding/Foo.html @@ -1,11 +1,5 @@ -:foo: - + +:foo: diff --git a/test/server-side-rendering/samples/component-binding/main.html b/test/server-side-rendering/samples/component-binding/main.html index e4ded91077..c8742a5843 100644 --- a/test/server-side-rendering/samples/component-binding/main.html +++ b/test/server-side-rendering/samples/component-binding/main.html @@ -1,11 +1,7 @@ -{x}{x} - + +{x}{x} diff --git a/test/server-side-rendering/samples/component-data-dynamic/main.html b/test/server-side-rendering/samples/component-data-dynamic/main.html index 554d4980ad..74998f4742 100644 --- a/test/server-side-rendering/samples/component-data-dynamic/main.html +++ b/test/server-side-rendering/samples/component-data-dynamic/main.html @@ -1,11 +1,12 @@ -
    - -
    - + +
    + +
    diff --git a/test/server-side-rendering/samples/component-data-empty/main.html b/test/server-side-rendering/samples/component-data-empty/main.html index 8b797c8a60..478bcff0a1 100644 --- a/test/server-side-rendering/samples/component-data-empty/main.html +++ b/test/server-side-rendering/samples/component-data-empty/main.html @@ -1,11 +1,7 @@ -
    - -
    - + +
    + +
    diff --git a/test/server-side-rendering/samples/component-refs-and-attributes/main.html b/test/server-side-rendering/samples/component-refs-and-attributes/main.html index d0e56efa38..86b3ddf1a9 100644 --- a/test/server-side-rendering/samples/component-refs-and-attributes/main.html +++ b/test/server-side-rendering/samples/component-refs-and-attributes/main.html @@ -1,13 +1,9 @@ -
    - + +
    diff --git a/test/server-side-rendering/samples/component-refs/main.html b/test/server-side-rendering/samples/component-refs/main.html index 14919b51c9..55d2abc4cd 100644 --- a/test/server-side-rendering/samples/component-refs/main.html +++ b/test/server-side-rendering/samples/component-refs/main.html @@ -1,9 +1,7 @@ -
    - + +
    diff --git a/test/server-side-rendering/samples/component-with-different-extension/main.svelte b/test/server-side-rendering/samples/component-with-different-extension/main.svelte index 4f02f2f94e..ac0b429163 100644 --- a/test/server-side-rendering/samples/component-with-different-extension/main.svelte +++ b/test/server-side-rendering/samples/component-with-different-extension/main.svelte @@ -1,11 +1,7 @@ -
    - -
    - + +
    + +
    diff --git a/test/server-side-rendering/samples/component-yield/Widget.html b/test/server-side-rendering/samples/component-yield/Widget.html index 34efb735b9..d7159b1799 100644 --- a/test/server-side-rendering/samples/component-yield/Widget.html +++ b/test/server-side-rendering/samples/component-yield/Widget.html @@ -1,11 +1,5 @@ -

    - + +

    diff --git a/test/server-side-rendering/samples/component-yield/main.html b/test/server-side-rendering/samples/component-yield/main.html index 1e4cef5781..9c2f573c91 100644 --- a/test/server-side-rendering/samples/component-yield/main.html +++ b/test/server-side-rendering/samples/component-yield/main.html @@ -1,17 +1,9 @@ -
    - {data} -
    - + +
    + {data} +
    diff --git a/test/server-side-rendering/samples/component/main.html b/test/server-side-rendering/samples/component/main.html index 5b119b5527..ecb4297a40 100644 --- a/test/server-side-rendering/samples/component/main.html +++ b/test/server-side-rendering/samples/component/main.html @@ -1,11 +1,7 @@ -
    - -
    - + +
    + +
    diff --git a/test/server-side-rendering/samples/computed/main.html b/test/server-side-rendering/samples/computed/main.html index d718fd052f..4143af2e0a 100644 --- a/test/server-side-rendering/samples/computed/main.html +++ b/test/server-side-rendering/samples/computed/main.html @@ -1,11 +1,15 @@ -

    {a} + {b} = {c}

    -

    {c} * {c} = {cSquared}

    - + +

    {a} + {b} = {c()}

    +

    {c()} * {c()} = {cSquared()}

    diff --git a/test/server-side-rendering/samples/default-data-override/main.html b/test/server-side-rendering/samples/default-data-override/main.html index 1014c2df07..3e42f1d4e5 100644 --- a/test/server-side-rendering/samples/default-data-override/main.html +++ b/test/server-side-rendering/samples/default-data-override/main.html @@ -1,11 +1,5 @@ -

    {foo}

    - + +

    {foo}

    diff --git a/test/server-side-rendering/samples/default-data/main.html b/test/server-side-rendering/samples/default-data/main.html index 1014c2df07..3e42f1d4e5 100644 --- a/test/server-side-rendering/samples/default-data/main.html +++ b/test/server-side-rendering/samples/default-data/main.html @@ -1,11 +1,5 @@ -

    {foo}

    - + +

    {foo}

    diff --git a/test/server-side-rendering/samples/directives/main.html b/test/server-side-rendering/samples/directives/main.html index a960ff707e..d8842a8673 100644 --- a/test/server-side-rendering/samples/directives/main.html +++ b/test/server-side-rendering/samples/directives/main.html @@ -1 +1 @@ - + diff --git a/test/server-side-rendering/samples/helpers/main.html b/test/server-side-rendering/samples/helpers/main.html index 03598e7066..6001057908 100644 --- a/test/server-side-rendering/samples/helpers/main.html +++ b/test/server-side-rendering/samples/helpers/main.html @@ -1,15 +1,7 @@ -

    {thrice(foo)}

    - + +

    {thrice(foo)}

    diff --git a/test/server-side-rendering/samples/import-non-component/main.html b/test/server-side-rendering/samples/import-non-component/main.html index 80e2413dd7..1a2814bbd5 100644 --- a/test/server-side-rendering/samples/import-non-component/main.html +++ b/test/server-side-rendering/samples/import-non-component/main.html @@ -1,13 +1,7 @@ -
    i got {problems} problems
    -
    the answer is {answer}
    - + +
    i got {problems} problems
    +
    the answer is {answer}
    diff --git a/test/server-side-rendering/samples/sanitize-name/main.html b/test/server-side-rendering/samples/sanitize-name/main.html index 04071bf3c5..6d7986da2e 100644 --- a/test/server-side-rendering/samples/sanitize-name/main.html +++ b/test/server-side-rendering/samples/sanitize-name/main.html @@ -1,9 +1,5 @@ - - - export default { - components: { Foo } - }; - \ No newline at end of file + \ No newline at end of file diff --git a/test/server-side-rendering/samples/styles-nested/One.html b/test/server-side-rendering/samples/styles-nested/One.html index 0e68dd3c28..df5512b91a 100644 --- a/test/server-side-rendering/samples/styles-nested/One.html +++ b/test/server-side-rendering/samples/styles-nested/One.html @@ -1,3 +1,9 @@ + +
    green: {message}
    @@ -8,11 +14,3 @@ color: green; } - - diff --git a/test/server-side-rendering/samples/styles-nested/main.html b/test/server-side-rendering/samples/styles-nested/main.html index b87d4f32dc..11775475b8 100644 --- a/test/server-side-rendering/samples/styles-nested/main.html +++ b/test/server-side-rendering/samples/styles-nested/main.html @@ -1,3 +1,7 @@ + +
    red
    @@ -7,11 +11,3 @@ color: red; } - - diff --git a/test/server-side-rendering/samples/textarea-children/main.html b/test/server-side-rendering/samples/textarea-children/main.html index 0dbb397274..5f37f40d5e 100644 --- a/test/server-side-rendering/samples/textarea-children/main.html +++ b/test/server-side-rendering/samples/textarea-children/main.html @@ -1,11 +1,7 @@ + + - - \ No newline at end of file + \ No newline at end of file diff --git a/test/server-side-rendering/samples/textarea-value/main.html b/test/server-side-rendering/samples/textarea-value/main.html index 8413572a70..28f7f372be 100644 --- a/test/server-side-rendering/samples/textarea-value/main.html +++ b/test/server-side-rendering/samples/textarea-value/main.html @@ -1,9 +1,5 @@ -