wip(ssr): vdom serialization

This commit is contained in:
Evan You
2020-01-28 18:48:27 -05:00
parent 8857b4f288
commit 6f43c4b516
11 changed files with 286 additions and 48 deletions

View File

@@ -1,29 +1,19 @@
describe('ssr: render props', () => {
test('class', () => {})
test('styles', () => {
test('style', () => {
// only render numbers for properties that allow no unit numbers
})
describe('attrs', () => {
test('basic', () => {})
test('normal attrs', () => {})
test('boolean attrs', () => {})
test('boolean attrs', () => {})
test('enumerated attrs', () => {})
test('enumerated attrs', () => {})
test('skip falsy values', () => {})
})
test('ignore falsy values', () => {})
describe('domProps', () => {
test('innerHTML', () => {})
test('props to attrs', () => {})
test('textContent', () => {})
test('textarea', () => {})
test('other renderable domProps', () => {
// also test camel to kebab case conversion for some props
})
})
test('ignore non-renderable props', () => {})
})

View File

@@ -1,17 +1,31 @@
// import { renderToString, renderComponent } from '../src'
describe('ssr: renderToString', () => {
test('basic', () => {})
describe('elements', () => {
test('text children', () => {})
test('nested components', () => {})
test('array children', () => {})
test('nested components with optimized slots', () => {})
test('void elements', () => {})
test('mixing optimized / vnode components', () => {})
test('innerHTML', () => {})
test('nested components with vnode slots', () => {})
test('textContent', () => {})
test('async components', () => {})
test('textarea value', () => {})
})
test('parallel async components', () => {})
describe('components', () => {
test('nested components', () => {})
test('nested components with optimized slots', () => {})
test('mixing optimized / vnode components', () => {})
test('nested components with vnode slots', () => {})
test('async components', () => {})
test('parallel async components', () => {})
})
})