feat(runtime-test): triggerEvent

This commit is contained in:
Evan You
2018-10-28 17:43:27 -04:00
parent 52e6964d6c
commit 665cd8e3d9
6 changed files with 58 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ export interface TestElement {
tag: string
children: TestNode[]
props: Record<string, any>
eventListeners: Record<string, Function | Function[]> | null
}
export interface TestText {
@@ -68,7 +69,8 @@ function createElement(tag: string): TestElement {
tag,
children: [],
props: {},
parentNode: null
parentNode: null,
eventListeners: null
}
logNodeOp({
type: NodeOpTypes.CREATE,