Add test case for gh-714 situation.

pull/715/head
Yury Zhuravlev 8 years ago
parent 177e4f8049
commit 05a270a3c7

@ -0,0 +1,20 @@
<Two bind:foo/>
<p class="{{test ? 't1' : 't2'}}"></p>
<script>
import Two from './Two.html';
export default {
data() {
return {
test: false
};
},
components: {
Two
},
oncreate() {
this.snapshot = this.get('foo');
}
};
</script>

@ -0,0 +1,15 @@
<script>
export default {
data() {
return {
bar: 1
};
},
computed: {
foo(bar) {
return bar * 2;
}
}
};
</script>

@ -0,0 +1,5 @@
export default {
test(assert, component) {
assert.equal(component.refs.one.snapshot, 2);
}
};

@ -0,0 +1,9 @@
<One ref:one/>
<script>
import One from './One.html';
export default {
components: { One }
};
</script>
Loading…
Cancel
Save