"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/unit/features/component/component-slot.spec.js" between
vue-2.6.13.tar.gz and vue-2.6.14.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

component-slot.spec.js  (vue-2.6.13):component-slot.spec.js  (vue-2.6.14)
skipping to change at line 989 skipping to change at line 989
} }
}).$mount() }).$mount()
expect(vm.$el.firstChild.innerHTML).toBe('<span><span><b>1</b></span></span >') expect(vm.$el.firstChild.innerHTML).toBe('<span><span><b>1</b></span></span >')
parentVm.alter = false parentVm.alter = false
waitForUpdate(() => { waitForUpdate(() => {
vm.message = 2 vm.message = 2
}).then(() => { }).then(() => {
expect(vm.$el.firstChild.innerHTML).toBe('<span><b>2</b></span>') expect(vm.$el.firstChild.innerHTML).toBe('<span><b>2</b></span>')
}).then(done) }).then(done)
}) })
// #12102
it('v-if inside scoped slot', () => {
const vm = new Vue({
template: `<test><template #custom><span v-if="false">a</span><span>b</spa
n></template></test>`,
components: {
test: {
template: `<div><slot name="custom"/></div>`
}
}
}).$mount()
expect(vm.$el.innerHTML).toBe(`<!----><span>b</span>`)
})
}) })
 End of changes. 1 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)