mirror of https://github.com/sveltejs/svelte
Merge pull request #434 from sveltejs/gh-424-alt
Treat literals as special cases when parsingpull/435/head
commit
67d6eb89f2
@ -0,0 +1,19 @@
|
|||||||
|
export default {
|
||||||
|
'skip-ssr': true,
|
||||||
|
|
||||||
|
data: {
|
||||||
|
foo: false
|
||||||
|
},
|
||||||
|
|
||||||
|
test ( assert, component, target ) {
|
||||||
|
const inputs = target.querySelectorAll( 'input' );
|
||||||
|
|
||||||
|
assert.ok( inputs[0].checked );
|
||||||
|
assert.ok( !inputs[1].checked );
|
||||||
|
|
||||||
|
component.set( { foo: true } );
|
||||||
|
|
||||||
|
assert.ok( !inputs[0].checked );
|
||||||
|
assert.ok( inputs[1].checked );
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,2 @@
|
|||||||
|
<input type='radio' bind:group='foo' value='{{false}}'>
|
||||||
|
<input type='radio' bind:group='foo' value='{{true}}'>
|
Loading…
Reference in new issue