You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples
Rich Harris 61476048c8
dont use skipped text nodes as anchors - fixes #843
7 years ago
..
attribute-dynamic separate current *fragment* from current *generator state* 8 years ago
attribute-dynamic-multiple minor test tweaks 8 years ago
attribute-dynamic-reserved move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-dynamic-shorthand move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-dynamic-type only enforce static type if input is bound (fixes #620) 8 years ago
attribute-empty move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-empty-svg move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-namespaced replace all invalid characters in attribute names when creating variables (fixes #470) 8 years ago
attribute-partial-number move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-prefer-expression move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-static move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-static-at-symbol rename test 8 years ago
attribute-static-boolean move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
attribute-static-quotemarks failing tests for #741 8 years ago
autofocus move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-audio-currenttime-duration dont try to test audio stuff in JSDOM 8 years ago
binding-indirect mark indirect dependencies of <select> bindings - #639 8 years ago
binding-input-checkbox move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-checkbox-deep-contextual move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-checkbox-group move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-checkbox-group-outside-each failing test for #498 8 years ago
binding-input-number coerce empty string in number/range inputs to undefined - closes #584 8 years ago
binding-input-radio-group move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-range move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-range-change bind to change events for range inputs, as well as input events (#740) 7 years ago
binding-input-text move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-text-contextual move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-text-deconflicted ensure var names in binding callbacks are unique — fixes #495 8 years ago
binding-input-text-deep move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-text-deep-computed support binding to computed member expressions (fixes #602) 8 years ago
binding-input-text-deep-computed-dynamic support binding to computed member expressions (fixes #602) 8 years ago
binding-input-text-deep-contextual move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
binding-input-text-deep-contextual-computed-dynamic support binding to computed member expressions (fixes #602) 8 years ago
binding-input-with-event ensure binding event handlers precede normal ones (fixes #486) 8 years ago
binding-select Use .querySelector(':checked'), enable several <select> tests 8 years ago
binding-select-in-each-block fix context for bindings (#685) 8 years ago
binding-select-in-yield dont actually render <slot> elements 7 years ago
binding-select-initial-value Use .querySelector(':checked'), enable several <select> tests 8 years ago
binding-select-initial-value-undefined skip failing SSR test for now 8 years ago
binding-select-late update select value bindings at the end of the cycle (fixes #476) 8 years ago
binding-select-multiple Use .querySelector(':checked'), enable several <select> tests 8 years ago
binding-textarea move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
bindings-before-oncreate add test 8 years ago
bindings-coalesced update component bindings together. WIP 7 years ago
component move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-blowback prevent component binding blowback on initial render 8 years ago
component-binding-blowback-b dont actually render <slot> elements 7 years ago
component-binding-blowback-c dont actually render <slot> elements 7 years ago
component-binding-computed allow components to have computed member expressions for bindings (fixes #624) 8 years ago
component-binding-conditional move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-conditional-b move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-deep move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-deep-b move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-each wait this is actually way easier 8 years ago
component-binding-each-nested move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-each-object move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-infinite-loop dont actually render <slot> elements 7 years ago
component-binding-nested move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-binding-parent-supercedes-child move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-data-dynamic move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-data-dynamic-late move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-data-dynamic-shorthand move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-data-empty move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-data-static move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-data-static-boolean move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-events move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-events-data move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-events-each move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-if-placement failing test for #569 8 years ago
component-nested-deep more improvements to ergonomics around test failures 8 years ago
component-nested-deeper doh 8 years ago
component-not-void dont actually render <slot> elements 7 years ago
component-ref move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
component-slot-default dont actually render <slot> elements 7 years ago
component-slot-fallback dont actually render <slot> elements 7 years ago
component-slot-if-block use anchors for slotted content - fixes #822 7 years ago
component-slot-named dont actually render <slot> elements 7 years ago
component-slot-nested support nested <slot> elements 7 years ago
component-slot-nested-component stack up append targets so that slotted content in nested components works in SSR mode (fixes #801) 7 years ago
component-static-at-symbol add test 8 years ago
component-yield dont actually render <slot> elements 7 years ago
component-yield-follows-element dont actually render <slot> elements 7 years ago
component-yield-if dont actually render <slot> elements 7 years ago
component-yield-multiple-in-each dont actually render <slot> elements 7 years ago
component-yield-multiple-in-if dont actually render <slot> elements 7 years ago
component-yield-nested-if dont actually render <slot> elements 7 years ago
component-yield-parent dont actually render <slot> elements 7 years ago
component-yield-placement dont actually render <slot> elements 7 years ago
component-yield-static dont actually render <slot> elements 7 years ago
computed-empty move some tests to where they belong 8 years ago
computed-function move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
computed-values move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
computed-values-default move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
computed-values-function-dependency move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
css unescape hash character (#722) 8 years ago
css-comments move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
css-false move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
css-space-in-attribute move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
custom-method move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
deconflict-builtins remove reify 8 years ago
deconflict-contexts move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
deconflict-non-helpers move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
deconflict-self deconflict name with imports (#655) 8 years ago
deconflict-template-1 remove reify 8 years ago
deconflict-template-2 move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
default-data move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
default-data-function move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
default-data-override move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
destroy-twice dont throw error if component is destroyed twice (closes #643) 8 years ago
destructuring move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
dev-warning-bad-observe-arguments move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
dev-warning-destroy-not-teardown move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
dev-warning-destroy-twice add dev mode warning for double destroy 8 years ago
dev-warning-helper make all tests run 8 years ago
dev-warning-missing-data use component name in runtime dev warnings - fixes #781 7 years ago
dev-warning-missing-data-binding use component name in runtime dev warnings - fixes #781 7 years ago
dev-warning-readonly-computed use component name in runtime dev warnings - fixes #781 7 years ago
dev-warning-readonly-window-binding use component name in runtime dev warnings - fixes #781 7 years ago
each-block minor test tweaks 8 years ago
each-block-containing-component-in-if add test for #610 8 years ago
each-block-containing-if move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
each-block-dynamic-else-static null out else block references when they are destroyed — fixes #509 8 years ago
each-block-else all tests passing once more. now the real work begins 8 years ago
each-block-else-starts-empty fix each-else blocks that are empty on initial render (#662) 8 years ago
each-block-indexed move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
each-block-keyed only cache values when it makes sense 7 years ago
each-block-keyed-dynamic update dynamic keyed each blocks 8 years ago
each-block-keyed-random-permute another crack at the algorithm. outros not currently applied 8 years ago
each-block-keyed-unshift use anchor comments to preserve order in keyed each blocks with components (fixes #700) 8 years ago
each-block-random-permute move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
each-block-static call create() on new iterations of static each blocks (#762) 7 years ago
each-block-text-node move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
each-blocks-expression move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
each-blocks-nested move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
each-blocks-nested-b move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
element-invalid-name replace invalid characters in element names when creating variables (#516) 8 years ago
empty-style-block correctly handle empty <style> tag (#634) 8 years ago
escape-template-literals also escape back-ticks and backslashes in text nodes in SSR code (#616) 8 years ago
escaped-text second failing test for #712 8 years ago
event-handler hoist some event handlers, rewrite non-hoisted ones to avoid binding 8 years ago
event-handler-custom move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
event-handler-custom-context move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
event-handler-custom-each hoist some event handlers, rewrite non-hoisted ones to avoid binding 8 years ago
event-handler-custom-node-context move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
event-handler-destroy include destroy as valid built-in method for event handlers (fixes #523) 8 years ago
event-handler-each hoist some event handlers, rewrite non-hoisted ones to avoid binding 8 years ago
event-handler-each-deconflicted ensure hoisted event handler names are globally unique — fixes #466 8 years ago
event-handler-event-methods move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
event-handler-hoisted alias #component in hoisted event handlers - fixes #699 8 years ago
event-handler-removal move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
event-handler-sanitize sanitize event name in handler function name (#612) 8 years ago
event-handler-shorthand event propagation shorthand for elements (#638) 8 years ago
event-handler-shorthand-component event propagation shorthand for components (#638) 8 years ago
event-handler-this-methods move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
events-custom move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
events-lifecycle move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
flush-before-bindings dont actually render <slot> elements 7 years ago
function-in-expression move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
get-state move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
globals-accessible-directly move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
globals-not-dereferenced move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
globals-shadowed-by-data move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
globals-shadowed-by-helpers move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
hello-world move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
helpers move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
helpers-not-call-expression always use helpers if referenced, not just for CallExpressions, and warn on context clashes (#575) 8 years ago
html-entities some more html entity stuff, the bits i understand at least 8 years ago
if-block another horrible half-done commit 8 years ago
if-block-else move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
if-block-elseif move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
if-block-elseif-text move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
if-block-expression move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
if-block-or fix simple if blocks with top-level or conditions (#532) 8 years ago
if-block-widget only create anchors for if blocks when necessary 8 years ago
ignore-unchanged-attribute apply optimisation to raw tags 7 years ago
ignore-unchanged-attribute-compound apply optimisation to raw tags 7 years ago
ignore-unchanged-raw apply optimisation to raw tags 7 years ago
ignore-unchanged-tag apply optimisation to raw tags 7 years ago
imported-renamed-components move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
inline-expressions move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
input-list move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
lifecycle-events handle set after destroy, and move destroy into shared helpers 8 years ago
names-deconflicted move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
names-deconflicted-nested move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
nbsp move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
observe-binding-ignores-unchanged prevent mutation bug from incorrectly calling observer (fixes #804) 7 years ago
observe-component-ignores-irrelevant-changes move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
observe-deferred move some tests to where they belong 8 years ago
observe-prevents-loop move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
ondestroy-before-cleanup clear refs in destroy, not unmount, so that refs are populated in ondestroy. fixes #706 8 years ago
onrender-chain move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
onrender-fires-when-ready move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
onrender-fires-when-ready-nested move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
options attach options to component (#550) 7 years ago
paren-wrapped-expressions fix parsing of expressions wrapped in parentheses (#534) 8 years ago
raw-anchor-first-child only use noscript if necessary 7 years ago
raw-anchor-first-last-child only use noscript if necessary 7 years ago
raw-anchor-last-child only use noscript if necessary 7 years ago
raw-anchor-next-previous-sibling only use noscript if necessary 7 years ago
raw-anchor-next-sibling only use noscript if necessary 7 years ago
raw-anchor-previous-sibling only use noscript if necessary 7 years ago
raw-mustaches move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
raw-mustaches-preserved only use noscript if necessary 7 years ago
refs move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
refs-unset move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
select move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
select-bind-array formatting 8 years ago
select-bind-in-array Fix binding in each block 8 years ago
select-change-handler Use .querySelector(':checked'), enable several <select> tests 8 years ago
select-no-whitespace dont create whitespace nodes inside elements like <select> (#189) 8 years ago
select-one-way-bind move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
select-one-way-bind-object Use .querySelector(':checked'), enable several <select> tests 8 years ago
select-props add unit test 8 years ago
self-reference deconflict name with imports (#655) 8 years ago
self-reference-tree move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
set-after-destroy handle set after destroy, and move destroy into shared helpers 8 years ago
set-clones-input clone before set — fixes #479 8 years ago
set-in-observe move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
set-in-observe-dedupes-renders move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
set-in-oncreate dont noop set/get until after component is destroyed (fixes #788) 7 years ago
set-in-ondestroy dont noop set/get until after component is destroyed (fixes #788) 7 years ago
set-prevents-loop move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
sigil-static-# handle @foo and #foo edge cases 8 years ago
sigil-static-@ handle @foo and #foo edge cases 8 years ago
single-static-element move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
single-text-node move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
state-deconflicted rename root to state, and allow state to be used as context 8 years ago
svg fix most non-hydration tests 8 years ago
svg-attributes move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-child-component-declared-namespace move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-child-component-declared-namespace-shorthand move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-class move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-each-block-anchor dont use skipped text nodes as anchors - fixes #843 7 years ago
svg-each-block-namespace move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-multiple move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-no-whitespace move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-xlink move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
svg-xmlns move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 8 years ago
textarea-children treat <textarea> children the same as a value attribute 8 years ago
textarea-value use value property for textareas 8 years ago
transition-css-delay apply t0 styles to nodes if css transition has delay. fixes #574 8 years ago
transition-js-delay apply delays to bidirectional transitions - fixes #562 8 years ago
transition-js-delay-in-out apply delays to bidirectional transitions - fixes #562 8 years ago
transition-js-dynamic-if-block-bidi apply delays to bidirectional transitions - fixes #562 8 years ago
transition-js-each-block-intro intro transitions in each-blocks 8 years ago
transition-js-each-block-intro-outro oops 8 years ago
transition-js-each-block-keyed-intro fix mount order of keyed each-block with intros 8 years ago
transition-js-each-block-keyed-intro-outro handle bidirectional transitions 8 years ago
transition-js-each-block-keyed-outro update keyed each-block outro test to check div order 8 years ago
transition-js-each-block-outro unkeyed each-blocks with outros 8 years ago
transition-js-events fire intro.start and outro.start events (#702) 8 years ago
transition-js-if-block-bidi tighten up transition tests 8 years ago
transition-js-if-block-in-each-block-bidi only run create() for new if blocks - fixes #665 8 years ago
transition-js-if-block-in-each-block-bidi-2 reenable tests 8 years ago
transition-js-if-block-in-each-block-bidi-3 dont recreate if_blocks incorrectly 8 years ago
transition-js-if-block-intro tighten up transition tests 8 years ago
transition-js-if-block-intro-outro tighten up transition tests 8 years ago
transition-js-if-else-block-dynamic-outro fix outros on compound if blocks, get IfBlock.js coverage to 100% 8 years ago
transition-js-if-else-block-intro tighten up transition tests 8 years ago
transition-js-if-else-block-outro fix outros on compound if blocks, get IfBlock.js coverage to 100% 8 years ago
transition-js-if-elseif-block-outro fix outros on compound if blocks, get IfBlock.js coverage to 100% 8 years ago
transition-js-initial add test for #651 8 years ago
whitespace-each-block dont strip whitespace at the end of an each block (#713) 8 years ago
whitespace-normal dont strip whitespace at the end of an each block (#713) 8 years ago
window-bind-scroll-update window scroll bindings are bidirectional (#404) 8 years ago
window-binding-resize remove reify 8 years ago
window-event remove reify 8 years ago
window-event-context allow window events to access state 8 years ago