|
@@ -1,15 +1,6 @@
|
|
|
import { nodeOps, svgNS } from '../src/nodeOps'
|
|
import { nodeOps, svgNS } from '../src/nodeOps'
|
|
|
|
|
|
|
|
describe('runtime-dom: node-ops', () => {
|
|
describe('runtime-dom: node-ops', () => {
|
|
|
- test('the _value property should be cloned', () => {
|
|
|
|
|
- const el = nodeOps.createElement('input') as HTMLDivElement & {
|
|
|
|
|
- _value: any
|
|
|
|
|
- }
|
|
|
|
|
- el._value = 1
|
|
|
|
|
- const cloned = nodeOps.cloneNode!(el) as HTMLDivElement & { _value: any }
|
|
|
|
|
- expect(cloned._value).toBe(1)
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
test("the <select>'s multiple attr should be set in createElement", () => {
|
|
test("the <select>'s multiple attr should be set in createElement", () => {
|
|
|
const el = nodeOps.createElement('select', false, undefined, {
|
|
const el = nodeOps.createElement('select', false, undefined, {
|
|
|
multiple: ''
|
|
multiple: ''
|