"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/unit/modules/vdom/patch/element.spec.js" between
vue-2.6.11.tar.gz and vue-2.6.12.tar.gz

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

element.spec.js  (vue-2.6.11):element.spec.js  (vue-2.6.12)
skipping to change at line 44 skipping to change at line 44
patch(null, vnode) patch(null, vnode)
expect(`Unknown custom element: <unknown-foo>`).toHaveBeenWarned() expect(`Unknown custom element: <unknown-foo>`).toHaveBeenWarned()
}) })
it('should create an elements which having text content', () => { it('should create an elements which having text content', () => {
const vnode = new VNode('div', {}, [createTextVNode('hello world')]) const vnode = new VNode('div', {}, [createTextVNode('hello world')])
const elm = patch(null, vnode) const elm = patch(null, vnode)
expect(elm.innerHTML).toBe('hello world') expect(elm.innerHTML).toBe('hello world')
}) })
it('should create create an elements which having span and text content', () = > { it('should create an elements which having span and text content', () => {
const vnode = new VNode('div', {}, [ const vnode = new VNode('div', {}, [
new VNode('span'), new VNode('span'),
createTextVNode('hello world') createTextVNode('hello world')
]) ])
const elm = patch(null, vnode) const elm = patch(null, vnode)
expect(elm.childNodes[0].tagName).toBe('SPAN') expect(elm.childNodes[0].tagName).toBe('SPAN')
expect(elm.childNodes[1].textContent).toBe('hello world') expect(elm.childNodes[1].textContent).toBe('hello world')
}) })
it('should create element with scope attribute', () => { it('should create element with scope attribute', () => {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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