test: layout more runtime-core tests
This commit is contained in:
parent
8a01c8e549
commit
f26cd5dfe4
1
packages/runtime-core/__tests__/apiInject.spec.ts
Normal file
1
packages/runtime-core/__tests__/apiInject.spec.ts
Normal file
@ -0,0 +1 @@
|
||||
describe('api: provide/inject', () => {})
|
1
packages/runtime-core/__tests__/apiLifecycle.spec.ts
Normal file
1
packages/runtime-core/__tests__/apiLifecycle.spec.ts
Normal file
@ -0,0 +1 @@
|
||||
describe('api: lifecycle hooks', () => {})
|
1
packages/runtime-core/__tests__/apiWatch.spec.ts
Normal file
1
packages/runtime-core/__tests__/apiWatch.spec.ts
Normal file
@ -0,0 +1 @@
|
||||
describe('api: watch', () => {})
|
@ -1,5 +1,5 @@
|
||||
// using DOM renderer because this case is mostly DOM-specific
|
||||
import { h, render, Component, nextTick, cloneVNode } from '@vue/runtime-dom'
|
||||
import { createVNode as h, render, nextTick, cloneVNode } from '@vue/runtime-dom'
|
||||
|
||||
describe('attribute fallthrough', () => {
|
||||
it('everything should be in props when component has no declared props', async () => {
|
35
packages/runtime-core/__tests__/vdomChildren.spec.ts
Normal file
35
packages/runtime-core/__tests__/vdomChildren.spec.ts
Normal file
@ -0,0 +1,35 @@
|
||||
describe('vdom: unkeyed children', () => {
|
||||
test.todo('append')
|
||||
|
||||
test.todo('prepend')
|
||||
|
||||
test.todo('insert in middle')
|
||||
|
||||
test.todo('insert at beginning and end')
|
||||
|
||||
test.todo('insert to empty parent')
|
||||
|
||||
test.todo('shift with offset')
|
||||
|
||||
test.todo('remove from beginning')
|
||||
|
||||
test.todo('remove from end')
|
||||
|
||||
test.todo('remove from middle')
|
||||
|
||||
test.todo('moving single child forward')
|
||||
|
||||
test.todo('moving single child backwards')
|
||||
|
||||
test.todo('moving single child to end')
|
||||
|
||||
test.todo('swap first and last')
|
||||
|
||||
test.todo('move to left & replace')
|
||||
|
||||
test.todo('generic reorder')
|
||||
|
||||
test.todo('should not de-opt when both head and tail change')
|
||||
})
|
||||
|
||||
describe('vdom: keyed children', () => {})
|
7
packages/runtime-core/__tests__/vdomElement.spec.ts
Normal file
7
packages/runtime-core/__tests__/vdomElement.spec.ts
Normal file
@ -0,0 +1,7 @@
|
||||
describe('vdom: element', () => {
|
||||
test.todo('with props')
|
||||
|
||||
test.todo('with direct text children')
|
||||
|
||||
test.todo('with text node children')
|
||||
})
|
@ -1,23 +1,19 @@
|
||||
import {
|
||||
h,
|
||||
Component,
|
||||
createVNode as h,
|
||||
render,
|
||||
nodeOps,
|
||||
NodeTypes,
|
||||
TestElement,
|
||||
Fragment,
|
||||
observable,
|
||||
reactive,
|
||||
serialize,
|
||||
ChildrenFlags,
|
||||
nextTick,
|
||||
resetOps,
|
||||
dumpOps,
|
||||
NodeOpTypes,
|
||||
createFragment,
|
||||
createTextVNode
|
||||
NodeOpTypes
|
||||
} from '@vue/runtime-test'
|
||||
|
||||
describe('Fragments', () => {
|
||||
describe('vdom: fragment', () => {
|
||||
it('should allow returning multiple component root nodes', async () => {
|
||||
class App extends Component {
|
||||
render() {
|
21
packages/runtime-core/__tests__/vnode.spec.ts
Normal file
21
packages/runtime-core/__tests__/vnode.spec.ts
Normal file
@ -0,0 +1,21 @@
|
||||
describe('vnode', () => {
|
||||
test.todo('create with just tag')
|
||||
|
||||
test.todo('create with tag and props')
|
||||
|
||||
test.todo('create with tag, props and children')
|
||||
|
||||
test.todo('create with 0 as props')
|
||||
|
||||
test.todo('class normalization')
|
||||
|
||||
test.todo('style normalization')
|
||||
|
||||
test.todo('children normalization')
|
||||
|
||||
test.todo('normalizeVNode')
|
||||
|
||||
test.todo('node type inference')
|
||||
|
||||
test.todo('cloneVNode')
|
||||
})
|
Loading…
Reference in New Issue
Block a user